• Hello.

    WP is installed in directory /wordpress/.
    When $wp_super_cache_late_init is set to 1 I can’t login dashboard. Use PHP mode and no rules in .htaccess. When I try to login, system redirect me to /wordpress/wp-login.php and show home page. I notice no errors on this page.
    I can login when legacy caching mode is on or when $wp_super_cache_late_init is set to 0.
    What should I do to use PHP mode withous login problems?

    https://www.ads-software.com/extend/plugins/wp-super-cache/

Viewing 9 replies - 16 through 24 (of 24 total)
  • floz

    (@floz)

    Still having these issues, despite “maltech”‘s sugestion (I had this set to 0 all along…).

    Its back to haunt me also as I’m looking at WP Super Cache once again in the hope that I can get it working.

    OK, this is very odd.

    When the redirect occurs you get taken to /wp-login.php, however the page being displayed is the front page of the WP site.

    If you then check the source code of the page its actually showing the source of /wp-login.php so I can see options to submit and resend password, yet I’m looking at the front page ???

    This has to be a cache bug somewhere.

    On first load of the page (when redirected after logging in) if you check the source code the document expires almost immediately.

    Document Expired

    This document is no longer available.

    The requested document is not available in Firefox’s cache. As a security precaution, Firefox does not automatically re-request sensitive documents. Click Try Again to re-request the document from the website.

    Aha! So I removed ALL supercache generated files and then tried logging in and guess what…..I logged straight in. I think there are some WP files that are being cached incorrectly causing this login redirect.

    After stripping all cache lines out of wp-config.php and forcing super cache to rewrite them (or prompt for changes) it seems to be stable once again.

    Could be something legacy from previous versions or upgrades.

    Worth a try.

    Sorry its redirecting again. Only fix is clearing the supercache files or disabling plugin ?

    The culprit(s) is/are the index.html and index.html.gz file(s). Remove those and you can log back in.

    For some reason these are being served in place of the admin index page.

    Thanks Nic for your investigations! What do you mean by culprit, remove index.html from where? Does that need to be done once or again and again after login and logout?

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘[Plugin: WP Super Cache] Can't login with late init’ is closed to new replies.