L
L
Loopst2019-11-15 01:20:00
PHP
Loopst, 2019-11-15 01:20:00

PHP Fatal error: Cannot redeclare ihc_init() How to fix?

There are errors on the site. I needed to upload an image when registering on the site, but when I try to upload I get an error ERROR: Internal Server Error
In the logs I see this:

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

I really can't figure out how to fix them. Tell me, please, what can be done about this? Really needed. Urgently.
With
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
figured it out. Changed PHP version from 7.3 to 7.1 and the warning disappeared.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2019-11-15
@Loopst

The first is https://serverfault.com/a/587432/441975
The second is a warning, this error is googled.
Thirdly, some plugin has the same function, you must either delete the new plugin, or freeze the plugin version and rename the function everywhere in the breaking plugin with a hotfix

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question