Forums

[resolved] wp-super-cache problem / bug: WP_CACHE not enabled in wp-config.php (2 posts)

  1. Fredo754
    Member
    Posted 2 years ago #

    Hi, folks:

    I just installed wp-supercache. I went to dashboard -> settings -> WP Super Cache. I got it installed ok, but I had to 'chmod 777 wp-config.php' to allow supercache to modify it. Then I changed it back to the standard 644.

    So now, when I go to settings -> WP Super Cache, I get the following error:

    ---
    Error: WP_CACHE is not enabled in your wp-config.php file and I couldn’t modify it.
    Edit /home/virtual/site40/fst/var/www/html/wp-config.php and add the following line:
    define('WP_CACHE', true);
    Otherwise, WP-Cache will not be executed by WordPress core.
    ---

    Settings does not proceed past this error message unless I chmod 777 wp-config.php. Yet the file already contains the define "define('WP_CACHE', true);" and I will not leave the file set to 777.

    This appears to be a bug.

    Help, please?

    Thanks,

    Fred

  2. Fredo754
    Member
    Posted 2 years ago #

    Hey, I resolved it myself.

    In wp_config.php, the line:
    define('WP_CACHE', true);

    must occur before the define of ABSPATH.

    Cheers,

    Fred

Topic Closed

This topic has been closed to new replies.

About this Topic