1
votes

Strict Standards:

Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/dev/public_html/demo/demo5/templates/as002033free/index.php on line 19

Strict Standards:

Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in /home/dev/public_html/demo/demo5/includes/application.php on line 593

Strict Standards:

Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/dev/public_html/demo/demo5/templates/as002033free/index.php on line 41

Strict Standards:

Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in /home/dev/public_html/demo/demo5/includes/application.php on line 593

1
You will need to describe a specific problem and include valid code to reproduce it if you would like some helpJoel
make sure your template compatible with Joomla3.xJobin

1 Answers

2
votes

I hope error explains itself. Non-static method should not be called statically.

It should be like

$app = JFactory::getApplication();
$menu = $app->getMenu();

OR

$menu = JFactory::getApplication()->getMenu();

More

Similar Question