Joomla - Deprecated: Non-static method JSite getMenu() should not be called statically, assuming $this from incompatible context in
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Joomla - Deprecated: Non-static method JSite getMenu() should not be called statically, assuming $this from incompatible context in
Ошибка:
Deprecated: Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in /var/www/user1/data/www/site.com/templates/gk_magazine/lib/framework/helper.layout.php on line 150 Deprecated: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in /var/www/user1/data/www/site.com/includes/application.php on line 536
Решение - это открыть 150 строку файла /var/www/user1/data/www/site.com/templates/gk_magazine/lib/framework/helper.layout.php и сделать замену:
$menu = JSite::getMenu();
на
$menu = JFactory::getApplication()->getMenu();
Также можно скрыть ошибки через админку Joomla:
Система --> Общие настройки --> Сервер --> Сообщения об ошибка --> Нет