Joomla - jcomments - решение ошибки plgContentJComments has a deprecated constructor in

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 20:48, 19 мая 2020; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

Joomla - jcomments - решение ошибки plgContentJComments has a deprecated constructor in

Ошибка в админ панели и на сайте при использовании JComments 3.0.5 Stable + PHP 7.x:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /home/user12/public_html/site.com/plugins/content/jcomments/jcomments.php on line 25

Код JComments 3.0.5 не адаптирован под PHP 7.x, поэтому нужно обновить JComments до 3.0.7.5. Скачать плагин Jcomments 3.0.7 + Recaptcha 2 можно по ссылке:

Протестирован на Joomla 3.8.12 + PHP 7.2