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 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
+ | [[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | ||
+ | |||
=== Joomla - Deprecated: Non-static method JSite getMenu() should not be called statically, assuming $this from incompatible context in === | === Joomla - Deprecated: Non-static method JSite getMenu() should not be called statically, assuming $this from incompatible context in === | ||
Текущая версия на 07:49, 1 ноября 2021
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:
Система --> Общие настройки --> Сервер --> Сообщения об ошибка --> Нет