I have uninstalled WP Super Cache (I’m now using WP-Optimize) and whenever I delete the file /home/[MYSITE]/public_html/wp-content/advanced-cache.php
it gets auto-created.
So first, I receive this email:
On cPanel I try to delete it:
I then go to my WordPress Dashboard >> Installed Plugins and find the Drop-in “advanced-cache.php” still there.
I go back to cPanel, refresh the page, and “advanced-cache.php” is back.
Thank you.
]]>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).
]]>Looks like the WP-Optimize plugin is having some issues playing nice with other plugins. For example, the Shield Security plugin.
When I reported the issue to the Shield Security plugin developer, I was told that I am not the first to report this issue, and he was very kind about explaining what is going on with the plugins.
If I leave both plugins enabled, I get a WordPress error. If I disable WP-Optimize, the error goes away.
Below are the two error messages from my logs. I removed the site directory info as noted in brackets [ ], but the rest will give you an idea of what is happening.
1. Error related to Shield Security
PHP Fatal error: Declaration of FernleafSystems\Wordpress\Plugin\Shield\Modules\AuditTrail\Lib\LogHandlers\LocalDbWriter::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in /[removed site directory info]/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/AuditTrail/Lib/LogHandlers/LocalDbWriter.php on line 26
2. Error related to WP-Optimize
[ERROR] : WPO_ADVANCED_CACHE constant is not present in advanced-cache.php
The developer for Shield Security said that WP-Optimize recently released an update that contains a more recent version (v2) of the Monolog PHP library, and that the Monolog library only supports PHP 7.2+.
Could you go for an earlier version to provide greater compatibility with other plugins that use the older library, i.e. use a Monolog library that supports PHP 7.0+ and this is Monolog version 1?
Appreciate your time and assistance.
-M
]]>Warning: include(/home/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /home/wp-settings.php on line 84 Warning: include(): Failed opening '/home/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/wp-settings.php on line 84 Warning: require(/wp-includes/author-template.php): failed to open stream: No such file or directory in /home/wp-settings.php on line 165 Fatal error: require(): Failed opening required '/home/author-template.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/wp-settings.php on line 165
Can you help us please!????
]]>On Litespeed cache, it is not showing, just object cache.php is there.
Is it my issue?
https://prnt.sc/vyxwnr
]]>but i don’t see the file advanced-cache.php
in the drop-in plugins…
now i go to my server files and check the plugin folder.
i see we have there advanced-cache.php
my question is if to move the file and remove it from your plugin folder after i move it to /wp-contact
or to duplicate him and create 2 files on in your plugin folder and one in the wp-contact folder…
the same thing with the other file in the folder: batcache.php
in the instruction you said to take him out from the folder and put him
like that in the folder himself of the plugins without folder. so i need to delete the bat cache folder and move the files? or duplicate them?
what to do? the first or the second?
]]>define( 'WP_CACHE', false ) ;
// false Changed by WP-Staging
So, I changed it back to false. I am on a Litespeed server, but have disabled the Litespeed cache plugin on the staging site. Was this the correct thing to do?
Thank you!
Warning: include(/home/mysite/public_html/staging/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /home/mysite/public_html/staging/wp-settings.php on line 95
Warning: include(): Failed opening '/home/mysite/public_html/staging/wp-content/advanced-cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/mysite/public_html/staging/wp-settings.php on line 95
]]>Error: Configuration file /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content/wp-cache-config.php is missing. Please reload the page.
Warning! Could not update /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content/advanced-cache.php does not exist or cannot be updated.
If it already exists, please delete the file first.
Make /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
Refresh this page to update /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content/advanced-cache.php
If that doesn’t work, make sure the file /var/sites/e/edenfloraldesigns.co.uk/public_html/wp-content/advanced-cache.php doesn’t exist:
]]>