@Loopst

PHP Fatal error: Cannot redeclare ihc_init() Как исправить?

Появились ошибки на сайте. Понадобилось при регистрации на сайте загружать изображение, но при попытке загрузить получаю ошибку ERROR: Internal Server Error
В логах вижу такое:
2019/11/15 00:58:52 [warn] 1028#1028: *2613 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/9/15/0000000159 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/test-registratsii/"
2019/11/15 00:58:58 [warn] 1028#1028: *2613 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/0/16/0000000160 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/edit.php?post_type=page HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/edit.php?post_type=page", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/post.php?post=19952&action=edit"
2019/11/15 00:59:06 [warn] 1028#1028: *2641 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/16/0000000161 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/edit.php?post_type=page&paged=2 HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/edit.php?post_type=page&paged=2", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/edit.php?post_type=page"
2019/11/15 00:59:12 [warn] 1028#1028: *2641 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/2/16/0000000162 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/edit.php?post_type=page&paged=2&trashed=1&ids=19952 HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/edit.php?post_type=page&paged=2&trashed=1&ids=19952", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/edit.php?post_type=page&paged=2"
2019/11/15 01:00:30 [warn] 1028#1028: *2653 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/3/16/0000000163 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/admin.php?page=ihc_manage HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/admin.php?page=ihc_manage", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/edit.php?post_type=page&paged=2&ids=19952"
2019/11/15 01:00:38 [warn] 1028#1028: *2653 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/4/16/0000000164 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/admin.php?page=ihc_manage&tab=showcases HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/admin.php?page=ihc_manage&tab=showcases", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage"
2019/11/15 01:00:41 [warn] 1028#1028: *2653 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/5/16/0000000165 while reading upstream, client: 77.111.247.202, server: xxxxxxxx.ru, request: "GET /wp-admin/admin.php?page=ihc_manage&tab=register HTTP/1.1", upstream: "http://127.0.0.1:8080/wp-admin/admin.php?page=ihc_manage&tab=register", host: "xxxxxxxx.ru", referrer: "https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage&tab=showcases"
[Fri Nov 15 01:00:44.270676 2019] [fcgid:warn] [pid 1138] [client 77.111.247.202:52162] mod_fcgid: stderr: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/classes/UserAddEdit.class.php on line 252, referer: https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage&tab=register
[Fri Nov 15 01:00:44.270715 2019] [fcgid:warn] [pid 1138] [client 77.111.247.202:52162] mod_fcgid: stderr: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/classes/UserAddEdit.class.php on line 271, referer: https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage&tab=register
[Fri Nov 15 01:00:52.520987 2019] [fcgid:warn] [pid 1140] [client 77.111.247.202:52164] mod_fcgid: stderr: PHP Fatal error:  Cannot redeclare ihc_init() (previously declared in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/public/init.php:9) in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/public/init.php on line 87, referer: https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage&tab=register
[Fri Nov 15 01:01:45.515690 2019] [fcgid:warn] [pid 9407] [client 77.111.247.202:52180] mod_fcgid: stderr: PHP Fatal error:  Cannot redeclare ihc_init() (previously declared in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/public/init.php:9) in /var/www/www-root/data/www/xxxxxxxx.ru/wp-content/plugins/indeed-membership-pro/public/init.php on line 87, referer: https://xxxxxxxx.ru/wp-admin/admin.php?page=ihc_manage&tab=register

Вообще не могу понять как их исправить. Подскажите, пожалуйста, что с этим можно сделать? Очень надо. Срочно.
С
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
разобрался. Сменил версию PHP с 7.3 на 7.1 и предупреждение пропало.
  • Вопрос задан
  • 100 просмотров
Решения вопроса 1
glaphire
@glaphire Куратор тега PHP
PHP developer
Первое https://serverfault.com/a/587432/441975
Второе это варнинг, эта ошибка гуглится.
Третье - какой-то плагин имеет такую же функцию, надо или удалить новый плагин, или заморозить версию плагина и хотфиксом переименовать везде функцию в ломающем плагине
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы