Support » Plugin: W3 Total Cache » Cannot Login to WP Admin: Error

  • Resolved sandeepchourasia

    (@sandeepchourasia)


    I had w3 Total Cache and I integrated my cloudflare account with the w3 total Cache plugim, Thereafter, I am unable to Login. My website is live and working fine.

    But I am unable to login and am getting the message :

    Warning: include(/home/mawphlan/public_html/shaktipeethdarshan.com/wp-content/advanced-cache.php): failed to open stream: Permission denied in /home/mawphlan/public_html/shaktipeethdarshan.com/wp-settings.php on line 95

    Warning: include(): Failed opening ‘/home/mawphlan/public_html/shaktipeethdarshan.com/wp-content/advanced-cache.php’ for inclusion (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/mawphlan/public_html/shaktipeethdarshan.com/wp-settings.php on line 95

    Fatal error: Call to undefined function wp_kses() in /home/mawphlan/public_html/shaktipeethdarshan.com/wp-content/db.php on line 22
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    sir I have been able to resolve :

    Warning: include(/home/mawphlan/public_html/shaktipeethdarshan.com/wp-content/advanced-cache.php): failed to open stream: Permission denied in /home/mawphlan/public_html/shaktipeethdarshan.com/wp-settings.php on line 95

    Warning: include(): Failed opening ‘/home/mawphlan/public_html/shaktipeethdarshan.com/wp-content/advanced-cache.php’ for inclusion (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/mawphlan/public_html/shaktipeethdarshan.com/wp-settings.php on line 95

    I sorted this out by changing the wp-config.php file:

    define(‘WP_CACHE’, true) to define(‘WP_CACHE’, false)

    Then I renamed the advanced-cache.php and object-cache.php files.

    Renamed the files to .bak as follows : advanced-cache.php.bak and object-cache.php.bak

    This has ressolved the issue as I am not getting any messages, But still I cannot login to wp admin.

    Now I am getting :

    This page isn’t working

    shaktipeethdarshan.com redirected you too many times.

    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    Pls Pls Pls any help is appreciated

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sandeepchourasia

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share the specific moment when the issue started to occur in terms of the steps made so we can reproduce the problem?
    Can you please completely remove W3 Total Cache:
    1. Check the .htaccess File (make a backup)
    W3TC will create many directives in the .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are left over in your .htaccess file after deleting the plugin.
    2. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – db.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content/plugins/ (if exists)
    3. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.(Purge CDN/Cloudflare)

    See if the issue persists after these steps and let me know.

    If the issue is gone, re-installed the fresh version of W3 Total Cache.

    Thanks!

    Thread Starter sandeepchourasia

    (@sandeepchourasia)

    Sir,

    The problem occurred when I integrated Cloudflare with the W3 Total Cache.

    Remedial steps taken:

    1. I purged the CDN Cloudflare. Now what has happened is that the website which was being served from the CDN is no more showing and the website is down.

    2. Deleted all entries relating to W3TC from .htaccess and

    3. `Deleted wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – db.php (if exists)
    – upgrade folder`

    But still I cannot login to WP Admin.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sandeepchourasia

    Thank you for your feedback.
    This means that the problem is not specifically related to W3 Total Cache. So it seems that the error was possibly caused by the wrong configuration changes with Cloudflare. What you can try is to revert changes to your domain nameservers, and change them back to your server.
    What you can also try is to make a backup of your .htaccess file and only use default WordPress rules and see if that helps.
    If the issue continues to persist after this, please reach out to your hosting provider.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.