1

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

Joel
  • 4,732
  • 9
  • 39
  • 54
Dennis Dbs
  • 11
  • 1

1 Answers1

2

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

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243