Wordpress: ads-wordpress плагин. Ошибка Cannot redeclare urldecode deep() in

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Самые выгодные сервера? в рунете


Ошибка в логах Apache:

[Sat Jan 30 09:17:07.345661 2016] [lsapi:error] [pid 283640:tid 139936034359040] [client 127.0.0.1:43152] [host site.org] Backend fatal error: PHP Fatal error:  Cannot redeclare urldecode_deep() in /home/user/domains/site.org/public_html/wp-content/plugins/ads-wordpress/ads_filters.php on line 377\n


Решение - в файле ads_filters.php:

1. function urldecode_deep($value) заменить на function urldecode_deep_awp($value)
2. В function ads_queryfilter($query) заменить urldecode_deep($value) на urldecode_deep_awp($value)