Back to top

Autore Topic: Errore nel database  (Letto 731 volte)

Offline jumpy83

  • Nuovo arrivato
  • *
  • Post: 44
    • Mostra profilo
Errore nel database
« il: 04 Gen 2013, 09:50:54 »
Buongiorno a tutti.
Ho creato un sito con joomla 2.5.8 in locale con xampp.
Quando clicco su vedi sito ho notato che la homepage va tutto ok, ma navigando nel sito mi segnala due errori nel database

Codice: [Seleziona]
Strict Standards: Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in C:\Documents and Settings\gianpaolo\Documenti\Downloads\xampp-win32-1.8.0-VC9\xampp\htdocs\joomla258\templates\tk_gen_free_ii\warp\systems\joomla\layouts\com_content\article\default.phpon line 13

Codice: [Seleziona]
Strict Standards: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in C:\Documents and Settings\gianpaolo\Documenti\Downloads\xampp-win32-1.8.0-VC9\xampp\htdocs\joomla258\includes\application.php on line 539



Ho capito che sono problemi di compatibilità con qualche elemento ma non capisco qual è!
Non penso sia dovuto a xampp in quanto ho fatto un altro sito in locale e poi pubblicato utilizzando la stessa versione di xampp e lo stesso template!

Vi mando lo stralcio di codice segnalato negli errori


1° (dalla riga 9 alla riga 25)



Codice: [Seleziona]

// no direct access
defined('_JEXEC') or die;


// get view
$menu = JSite::getMenu()->getActive();
$view = is_object($menu) && isset($menu->query['view']) ? $menu->query['view'] : null;


JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');


// Create shortcuts to some parameters.
$params      = $this->item->params;
$images      = json_decode($this->item->images);
$urls      = json_decode($this->item->urls);
$canEdit   = $this->item->params->get('access-edit');
$user      = JFactory::getUser();


?>
[size=78%]




2° (da riga  527 a riga 551)



[/size]
Codice: [Seleziona]

/**
    * Return a reference to the JPathway object.
    *
    * @param   string   $name      The name of the application/client.
    * @param   array   $options   An optional associative array of configuration settings.
    *
    * @return   object   JMenu.
    * @since   1.5
    */
   public function getMenu($name = null, $options = array())
   {
      $options   = array();
      $menu      = parent::getMenu('site', $options);
      return $menu;
   }


   /**
    * Return a reference to the JPathway object.
    *
    * @param   string   $name      The name of the application.
    * @param   array   $options   An optional associative array of configuration settings.
    *
    * @return   object JPathway.
    * @since   1.5
    */
[size=78%]




grazie in anticipo :) [/size]
« Ultima modifica: 04 Gen 2013, 10:12:52 da jumpy83 »

Offline jumpy83

  • Nuovo arrivato
  • *
  • Post: 44
    • Mostra profilo
Re:Errore nel database
« Risposta #1 il: 04 Gen 2013, 10:24:21 »
Ho disattivato i messaggi d'errore del server e i messaggi non spuntano più.
Sito--> Configurazione Globale-->Server--> seleziono nessuno alla voce [size=1.091em]Rapporto errori. :)
Però non metto risolto perché mi piacerebbe sapere a cosa sono dovuti questi errori
[/size]
« Ultima modifica: 04 Gen 2013, 10:26:50 da jumpy83 »

 



Web Design Bolzano Kreatif