• Hi!
    My site health has been very slow to load (like 30 seconds) and /wp-admin does not load at all. At some point I got error message:

    When testing the REST API, an error was encountered:
    REST API Endpoint: https://www.[mydomainname].org/wp-json/wp/v2/types/post?context=edit
    REST API Response: (http_request_failed) cURL error 28: Resolving timed out after 10000 milliseconds

    I stumbled upon this thread and force-disabled both Yoast SEO and Super Cache (as I was using both) by renaming the plugin folders at the server. Now, both disabled, I receive this error message:

    Fatal error: Cannot redeclare wpcache_broken_message() (previously declared in /var/www/html/wp-content/advanced-cache.php:4) in /var/www/html/wp-content/advanced-cache.php on line 4

    Any idea what this error may be, or how to solve this? It seems not related to the plugin (Super Cache) as such because the plugin is disabled, but some PHP problem or even file permissions problem (which I have inspected and should not be about permissions).

    • This topic was modified 2 years, 7 months ago by jedes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • See the path of the file giving the error – var/www/html/wp-content/advanced-cache.php

    There is a file named advanced-cache.php in wp-content folder in the root folder of your website. Keep a backup of this and delete it. You can check later if the function wpcache_broken_message defined in this file has been defined in some other plugin or code you are using at your website.

    Thread Starter jedes

    (@jedes)

    I deleted the file. Current status: that fatal error message does not appear anymore and with plugins disabled also no white screen, just very slowly loading page.

    Now error message reads:

    “Warning: An unexpected error occurred. Something may be wrong with ww.wp.xz.cn or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to ww.wp.xz.cn. Please contact your server administrator.) in /var/www/html/wp-admin/includes/translation-install.php on line 68

    (which is related to other rest API error I copied to original post)

    This error means your website server is not able to complete the mentioned request within the time limit. You should contact your web host regarding this.

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

The topic ‘Fatal error: Cannot redeclare wpcache_broken_message()’ is closed to new replies.