• I am a new WP user and I started my own travel blog. I added the WP Cache and saw that it put codes on the top of each page so I deactivated it and deleted it.
    Now I can’t access my photo gallery or media, and my website won’t show certain images I had and I have no idea what to do! Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lauren4561

    (@lauren4561)

    https://www.ourlifetimememories.com

    I have tried changing the theme a few times and I can’t even get on to add a new them, I get an error message.

    My site is ourlifetimememories.com

    Hi,

    Please try following suggestion:

    1) Ask your web hosting provider for the backup and restore for you.

    2) Take a backup of your WordPress installation and delete the following files.

    wp-content/advanced-cache.php
    wp-content/wp-cache-config.php
    wp-content/plugins/wp-super-cache
    wp-content/cache/wp-cache*
    wp-content/cache/supercache

    Now take backup of wp-config.php, edit the file and remove the line that says:

    define('WP_CACHE', true); //Added by WP-Cache Manager

    Again, take a backup of your .htaccess file and remove the lines that looks something like this:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz -f
    RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html -f
    RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html [L]
    </IfModule>
    
    # END WPSuperCache

    Now, try to browse your website If it makes it worse, restore the full backup.

    You should also check the error_log file that your web server creates (ask your web host for the same).

    Hope that helps.
    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Added WP Cache and deactivated it- big problems with website!’ is closed to new replies.