Website down, please help!! Cannot redeclare is_ssl()
-
Hi, after WP updated to the latest version automatically, I get an error trying to load the site kivotos . ru:
Fatal error: Cannot redeclare is_ssl() (previously declared in /home/o/okladru/public_html/wp-includes/load.php:968) in /home/o/okladru/public_html/wp-includes/functions.php on line 3803
Would appreciate any help at all! Thanks!
-
It looks like the auto update got messed up. Try a manual update: https://codex.www.ads-software.com/Updating_WordPress#Manual_Update
Hi Steve, thank you very much!
I have replaced functions.php load.php and query.php and the site is back to normal, however, when I am trying to access WP-admin, it gives me 500 error and I see this in the address bar: https://kivotos.ru/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F
Found so many different ways to fix it, but I am a super-novice at this file things, so I am afraid to mess it up
Any suggestions appreciated
Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.
Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.www.ads-software.com/Debugging_in_WordPress
You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
Steve, thanks for taking time to get back to me.
Ive also tried to rename the plugins and the themes folder in FTP but it wont work.
I’ve just inserted this into wp-config.php, but I dont see any log file in contents directory???
// Enable WP_DEBUG mode
define( ‘WP_DEBUG’, true );// Enable Debug logging to the /wp-content/debug.log file
define( ‘WP_DEBUG_LOG’, true );// Disable display of errors and warnings
define( ‘WP_DEBUG_DISPLAY’, false );
@ini_set( ‘display_errors’, 0 );// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( ‘SCRIPT_DEBUG’, true );I have replaced functions.php load.php and query.php and the site is back to normal,
Did you replace just those two files or *all* files and directories? If just those two, do *all*.
Steve, I’m sorry Im mixed up and my head is buzzing because of such a humongous amount of new information.
1. Which folders do I have to replace completely to those from new WP version folder?
2. Will that not effect any of the site features/content?
Upload ALL of the files in the .zip file you downloaded from www.ads-software.com and unzipped locally. It will not affect your content.
[27-Jan-2017 14:01:24 UTC] PHP Fatal error: Cannot redeclare class WP_Screen in /home/o/okladru/public_html/wp-admin/includes/screen.php on line 203
This is the only thing listed in debug.log
Site is back to Fatal error: Cannot redeclare is_ssl() (previously declared in /home/o/okladru/public_html/wp-includes/load.php:968) in /home/o/okladru/public_html/wp-includes/functions.php on line 3803
I think Im going mad
Will try to replace all files now
- This reply was modified 7 years, 10 months ago by mccanni.
Hi Steve!
Thanks for your advice! I have replaced 2 directories: wp-admin and wp-includes and the site is back to normal.
However, should I proceed and replace all the rest? Or if it works – then happy days and nothing else should be done?
Also, why could this happen? Is that something I’ve done wrong you think while making the site or it just randomly happens?
And do I disable autoupdate and update WP manually once new release is out?
Thank you for your time and your patience, and looking forward to your reply.
What part of ALL do you keep questioning? Seriously, ALL files and directories.
This glitch is probably a one time thing. Do not disable auto-updates. If it happens again, then we can dig deeper.
That sounds reassuring, hope it wont happen again! Can i temporarily mark it as resolved and get back to this thread in case something went wrong again Steve?
Ive updated all the files, and honestly can’t thank you enough!!!!
Have a wonderful weekend.
Hi STeve, the site is not working again. Returning this
Fatal error: Cannot redeclare is_ssl() (previously declared in /home/o/okladru/public_html/wp-includes/load.php:968) in /home/o/okladru/public_html/wp-includes/functions.php on line 3803I don’t understand. All was working fine and now this all of a sudden. Again. I will now go ahead and replace files once again as it needs to be live. However, I’ve already spent a couple of hours on this. What can be causing this?
Warning: include_once(/home/o/okladru/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: No such file or directory in /home/o/okladru/public_html/wp-content/advanced-cache.php on line 20
Warning: include_once(): Failed opening ‘/home/o/okladru/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php’ for inclusion (include_path=’.:/usr/share/php5:/usr/share/php’) in /home/o/okladru/public_html/wp-content/advanced-cache.php on line 20
Fatal error: Cannot redeclare is_ssl() (previously declared in /home/o/okladru/public_html/wp-includes/load.php:968) in /home/o/okladru/public_html/wp-includes/functions.php on line 3803
1. Ask your host if they did anything like restore your site. It may be that they rolled it back to the broken setup.
2. If not, you may be hacked. Remain calm and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.
If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are two.
Host haven’t confirmed any activity on their side. Will follow the instructions on I’ve been hacked and let you know how it goes. Can we somehow hide the link to our website in my first post?
The funny thing is that we’ve turned email notifications on files being changed on the server. And while site is down I receive a message about changes of licence.txt file. It’s confusing.
I’ve also set the site up in seoprofiler’s uptime monitor and received the following this morning:
Outage start: 29 January 2017 06:34:32 UTC
HTTP status code: 500
Size: 0 Bytes
Response time: 0.1 Sek.Reason for notification:
server error (500 internal server error)
HALLO
What is HALLO in this message? Eek it’s driving me crazy
- The topic ‘Website down, please help!! Cannot redeclare is_ssl()’ is closed to new replies.