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
1°
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
2°
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)
// 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]
/**
* 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]