The class “SucuriScanSiteCheck” is defined once through the entire code base as you can see here [1]. The issue seems to only affect people with either APC or FastCGI because the plugin’s code is perfectly fine as it is. If you have the APC module enabled please consider to set these settings:
apc.include_once_override = 0
apc.canonicalize = 0
apc.stat = 0
I don’t have a solution to offer for FastCGI since the error is caused by an internal bug in that software, so there is little I can do to fix it from the PHP code. The only thing I can do is to add conditionals to prevent the false/positive redeclaration of the classes [2]. Please install the development version of the code from here [3] which already has the conditions.
[1] https://github.com/Sucuri/sucuri-wordpress-plugin/blob/6a55a00/sucuri.php#L13554
[2] https://github.com/cixtor/sucuri-wordpress-plugin/commit/f21d2e9
[3] https://github.com/cixtor/sucuri-wordpress-plugin/archive/master.zip
@yorman
Thanks for the reply, and explanation. The most recent development version seems to have worked sucessfully. Is this fix rolled out in the most recent version of the plugin?
The changes referenced in that commit [1] are still under testing, we will release a new version of the plugin as soon as we can confirm that they actually fix the issues that people are experiencing. There are other changes that we also have to test so it might take a couple of days before the new version is live.
[1] https://github.com/cixtor/sucuri-wordpress-plugin/commit/f21d2e9
@yorman This is still an issue for me.
I cannot upgrade from Version 1.7.17 to Version 1.8.1 (WordPress version-4-5-3)
Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555
Steps tried
- Upgrade from WordPress not working
- FTP into plugins and removing, then re-downloading
[Mon Sep 12 12:09:05.941660 2016] [:error] [pid 1079] [client (MY IP ADDRESS):39955] PHP Fatal error: Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555, referer: http://(WEBSITE HOST IP)/wp-admin/update.php?action=upgrade-plugin&plugin=sucuri-scanner%2Fsucuri.php&_wpnonce=1ce6c4ca46
[Mon Sep 12 12:09:13.605022 2016] [:error] [pid 1078] [client (MY IP ADDRESS):39958] PHP Fatal error: Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555, referer: http://(WEBSITE HOST IP)/wp-admin/plugins.php
[Mon Sep 12 12:09:17.441074 2016] [:error] [pid 1747] [client (MY IP ADDRESS):39959] PHP Fatal error: Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555, referer: http://(WEBSITE HOST IP)/wp-admin/update.php?action=upgrade-plugin&plugin=sucuri-scanner%2Fsucuri.php&_wpnonce=1ce6c4ca46
[Mon Sep 12 12:09:20.844874 2016] [:error] [pid 1081] [client (MY IP ADDRESS):39964] PHP Fatal error: Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555, referer: http://(WEBSITE HOST IP)/wp-admin/update.php?action=upgrade-plugin&plugin=sucuri-scanner%2Fsucuri.php&_wpnonce=1ce6c4ca46
[Mon Sep 12 12:09:43.618734 2016] [:error] [pid 1079] [client (WEBSITE HOST IP):60582] PHP Fatal error: Cannot redeclare class SucuriScanSiteCheck in /var/www/wp-content/plugins/sucuri-scanner/sucuri.php on line 13555
Dear All,
I am a wordpress beginner and now I can’t access to admin login my page. I used some minutes ago FTP to upload files to WordPress.
The message displayed on my browser is: “The website cannot display the page
HTTP 500. This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying”.
Can somebody to help me to solve this problem?
Thank you,
Mihai