• 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
    was

    	if ( 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.2and

    function 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!

Viewing 1 replies (of 1 total)
  • Thread Starter VWFeature

    (@vwfeature)

    Did that, BROKE my site!! Oops.

    I put
    CACHEHOME =/home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/ right at the top-

    # WP SUPER CACHE 1.2
    CACHEHOME =/home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/
    
    function wpcache_broken_message() {
    	global $wp_cache_config_file;

    did that, then got this error:

    WP_CACHE constant set to false

    The WP_CACHE constant is used by WordPress to load the code that serves cached pages. Unfortunately, it is set to false. Please edit your wp-config.php and add or edit the following line above the final require_once command:

    define(‘WP_CACHE’, true);

    ((Ok, I can do that.))
    I put

    /** This was set to run WP Super Cache- */
    define('WP_CACHE', true);
    
    <strong>((HERE))</strong>
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    <strong>((HERE))</strong>
    
    /** Sets up WordPress vars and included files. */
    
    <strong>((HERE))</strong>
    require_once(ABSPATH . 'wp-settings.php');

    One at a time, of course.
    All gave me

    HTTP ERROR 500

    I looked in
    /public_html/wp-content/wp-cache-config.php

    and found
    define( 'WPCACHEHOME', WP_CONTENT_DIR . "/plugins/wp-super-cache/" );

    Removed the

    /** This was set to run WP Super Cache- */
    define('WP_CACHE', true);

    STILL got the 500 error, flushed browser cache, still;
    a few min later, site went back to

    WP_CACHE constant set to false

    The WP_CACHE constant is used by WordPress to load the code that serves cached pages. Unfortunately, it is set to false. Please edit your wp-config.php and add or edit the following line above the final require_once command:

    define(‘WP_CACHE’, true);

    ((I’m stumped. How and exactly where do I put ))

    /** This was set to run WP Super Cache- */
    define('WP_CACHE', true);

    Thanks for your help!!

Viewing 1 replies (of 1 total)
  • The topic ‘Sugg-improve error message-WPCACHEHOME must be set in config file ///How to ?’ is closed to new replies.