Instruction to modify CACHEHOME is not clear
-
I have enabled the plugins and it asks me to replace CACHEHOME, but I found instead WPCACHEHOME and mentioned many times, do I need to replace them all? Do I need to do something else?
-
If I understand correctly, it’s related to file advanced-cache.php. It’s possible that plugin can’t write in wp-content directory, but you should see other notice. Have you installed latest version?
Anyway constant
WPCACHEHOME
should be defined in wp-config.php and it should point to WPSC directory (…/wp-content/plugins/wp-super-cache/). You don’t need to edit advanced-cache.php.I am having the same issue.
Getting this message.
Warning! Could not update /xxx/xxx/xxx/xxx.com/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /xxx/xxx/xxx/xxx.com/wp-content/advanced-cache.php does not exist or cannot be updated.If it already exists, please delete the file first.
Make /xxx/xxx/xxx/xxx.com/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /xxx/xxx/xxx/xxx.com/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 /xxx/xxx/xxx/xxx.com/wp-content/advanced-cache.phpIf that doesn’t work, make sure the file /xxx/xxx/xxx/xxx.com/wp-content/advanced-cache.php doesn’t exist:
Open /xxx/xxx/xxx/xxx.com/wp-content/plugins/wp-super-cache/advanced-cache.php in a text editor.
Change the text CACHEHOME to /xxx/xxx/xxx/xxx.com/wp-content/plugins/wp-super-cache/
Save the file and copy it to /xxx/xxx/xxx/xxx.com/wp-content/advanced-cache.php and refresh this page.Cannot continue… fix previous problems and retry.
I think that the Asma above was referring to this issue. My question also adds whether changes made to CACHEHOME to /xxx/xxx/xxx/xxx.com/wp-content/plugins/wp-super-cache/ file should also be saved to CACHEHOME to /xxx/xxx/xxx/xxx.com/wp-content/plugins/wp-super-cache/ along with new advanced-cache.php
Issue here is the 3 instances of CACHEHOME
if ( false == defined( ‘WPCACHEHOME’ ) ) {
define( ‘ADVANCEDCACHEPROBLEM’, 1 );
} elseif ( ! include_once WPCACHEHOME . ‘wp-cache-phase1.php’ ) {
if ( ! @is_file( WPCACHEHOME . ‘wp-cache-phase1.php’ ) ) {
define( ‘ADVANCEDCACHEPROBLEM’, 1 );
}
}
if ( defined( ‘ADVANCEDCACHEPROBLEM’ ) ) {
register_shutdown_function( ‘wpcache_broken_message’ );
}I have this issue, no matter what I do, it won’t work, keep trying for weeks! Is there a tutorial how to manually create wp-cache-config.php file from the sample file?
Same problem getting
Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.The file /home/myfilearea/public_html/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.
The other thing it does is keeps writing into wp-config.php
So there are multiple entrieslike this :define( ‘WPCACHEHOME’, ‘/home/myfilearea/public_html/wp-content/plugins/wp-super-cache/’ );
I do run through cloudflare.
Multiple issues on this thread. Basically:
You need to edit your wp-config.php and add a line like this:
define( 'WPCACHEHOME', '/XXXXXXXXXX/wp-content/plugins/wp-super-cache/' );
where XXXXXXXXXX is the path to your wp-super-cache directory.
If it’s being written multiple times then the plugin is having problems reading that file which is really odd. However, you should use Cloudflare OR WP Super Cache. Don’t use both.
Unfortunately, that answer did not make it any clearer for me.
I seem to have the same or a similar problem.
Warning! Could not update /XXX/wp-config.php! WPCACHEHOME must be set in config file.
I did this: Open
/XXX/wp-content/plugins/wp-super-cache/advanced-cache.php
in a text editor.The correct path was set already. So I did not do this: Change the text CACHEHOME to
/XXX/wp-content/plugins/wp-super-cache/
And not this: Save the file and copy it to
/XXX/wp-content/advanced-cache.php
and refresh this page.—
You say that I should NOT do the last step:
Save the file and copy it to
/XXX/wp-content/advanced-cache.php
Alright, I did not do it. The error persists.
What should I do now?
@zuma – follow what I said in my previous post, you need to edit wp-config.php and add WPCACHEHOME there. No need to touch advanced-cache.php.
I’ll have to update those docs as they’re very out of date.
Sorry @donncha, I seem to have explained it in a round about way.
I did exactly that and it did not help.
@zuma ok. Is the
define( 'WPCACHEHOME'... )
near the top of wp-config.php? It must be above the “That’s all, stop editing! Happy blogging.” comment in that file.
- The topic ‘Instruction to modify CACHEHOME is not clear’ is closed to new replies.