Sugg-improve error message-WPCACHEHOME must be set in config file ///How to ?
-
The hardest things are what WE know as (Of course!!) and we don’t know others don’t know…(Huh??)
I don’t know if this is a WP change or host specific, but the error message would work for a programmer; I’m a half-programmer, and I’m mystified.
My comments in (( ))Warning! Could not update /home/<Admin name>/public_html/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /home/<Admin name>/public_html/wp-content/advanced-cache.php does not exist ((true)) or cannot be updated.
1. If it already exists, please delete the file first.
2. Make /home/<Admin name>/public_html/wp-content writable using the chmod command through your ftp or server software. ((Or panel)) (chmod 777 /home/<Admin name>/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)
3. Refresh this page to update /home/<Admin name>/public_html/wp-content/advanced-cache.php
If that doesn’t work, ((didn’t work)) make sure the file /home/<Admin name>/public_html/wp-content/advanced-cache.php doesn’t exist: ((doesn’t exist))
1. Open /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
2. Change the text CACHEHOME to /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/ ((see code below))
3. Save the file and copy it to /home/<Admin name>/public_html/wp-content/advanced-cache.php and refresh this page.
Cannot continue… fix previous problems and retry.But the only mention of WPCACHEHOME in advanced-cache.php
wasif ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) && !$skip_output ) { echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->"; } } 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 ); } }
I’m guessing if I replaced WPCACHEHOME in that code, it wouldn’t work.
As a half-assed programmer, I’m guessing it needs a line like:
CACHEHOME = /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/
or
CACHEHOME /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/
but since I don’t know the syntax and I’m not sure where in advanced-cache.php it can go…
SUGGESTION:
put this in the error message:
Insert this command ((proper command, including path as above)) in /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file
in ((this location -after ” code” and bevfore “code”))
(then (do this))
=Tell non programmers EXACTLY what to type & where, or they’ll break something!I’m going to try both (because one might throw an error, and the other might work…) between
# WP SUPER CACHE 1.2
andfunction wpcache_broken_message() {
If that doesn’t work, I’ll stick it somewhere else.
=Tell non programmers EXACTLY what to type & where, or they’ll break something!
- The topic ‘Sugg-improve error message-WPCACHEHOME must be set in config file ///How to ?’ is closed to new replies.