• Over the past week our site has been knocked offline three times by auto updates which have caused fatal and syntax errors (see below).
    Since there is no way to log in to our control panel who the site is down we have had to contact our host server and have them restore the site each time using a prior back up.
    Is there a way to disable these updates? Or to ensure that future additions do not result in the site going down? We are running WP version 4.3.1 and the Craft theme.

    ERROR MESSAGES

    Parse error: syntax error, unexpected ‘%’ in /home/xxxxxxxx/public_html/wp-includes/functions.php on line 2902

    Fatal error: Call to undefined function wp_suspend_cache_addition() in /home/xxxxxxxx/public_html/wp-includes/cache.php on line 391

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_ob_end_flush_all’ not found or invalid function name in /home/xxxxxxxx/public_html/wp-includes/plugin.php on line 503

    Warning: require_once(/home/xxxxxxxx/public_html/wp-includes/cache.php): failed to open stream: No such file or directory in /home/xxxxxxxx/public_html/wp-includes/load.php on line 439

    Fatal error: require_once(): Failed opening required ‘/home/xxxxxxxx/public_html/wp-includes/cache.php’ (include_path=’.:/usr/local/lib/php’) in /home/xxxxxxxx/public_html/wp-includes/load.php on line 439

    Parse error: syntax error, unexpected end of file in /home/xxxxxxxx/public_html/wp-includes/functions.php on line 2877

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – Flushing any caching plugins you might be running, as well as server and/or browser caches. Also, any op cache or content network cache, as well as Cloudflare, clear those caches.
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Twenty Fifteen theme for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides. Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter ScottishCartoons

    (@scottishcartoons)

    I’ve only a superficial understanding of WordPress and so nervous about trying any of the above. However this process has highlighted that the site has no wp-config.php file, instead there is a piece of code that seems to have been written to compensate for the original web designer’s inability to create the file when establishing the site. Is this something that needs to be addressed before trying anything else?

    I would say so, yes. What is in this piece of code?

    Thread Starter ScottishCartoons

    (@scottishcartoons)

    As below, named setup-config.php

    [ Lengthy unreadable code deleted ]

    Thread Starter ScottishCartoons

    (@scottishcartoons)

    I don’t think I can post it here but having looked through it it’s definitely a measure to get past a problem with wp-config.php at the outset (several years ago).

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Hi @scottishcartoons Please don’t post that many lines of code in these forums. It doesn’t work.

    What is the filename and directory for that code you posted?

    Thread Starter ScottishCartoons

    (@scottishcartoons)

    Apologies, Jan. First time poster.
    I don’t think it matters. Clearly there’s a fundamental problem with the site, something I wouldn’t wish to waste your volunteers’ time with.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Auto updates causing fatal errors’ is closed to new replies.