• Resolved Rafa Gallego

    (@rafa-gt)


    Hello, team.

    I’ve been using your plugin since long time ago, but suddenly, last thursday, my web started to had a bad behaviour. I’m monitoring my web pages using “better uptime”, and this tool gave me the cause: “Number of redirects hit maximum amount”. Looking at the Better Uptime console, I saw these response headers:

    HTTP/1.1 200 Connection established

    HTTP/2 302
    server: nginx
    date: Sun, 19 Mar 2023 19:42:17 GMT
    content-type: text/html; charset=UTF-8
    x-powered-by: PHP/7.4.33
    location: Gapito
    cache-control: max-age=3600
    expires: Sun, 19 Mar 2023 20:41:52 GMT
    access-control-allow-origin: *
    x-cache-status: HIT
    x-powered-by: PleskLin

    So, when I was trying to access to my site, there was a redirect to mysite.com/Gapito (there is no page named Gapito, this is my user, actually), and the browser appeared this error: err_too_many_redirects. The issue lasted 1 exact hour, and it happened again from time to time, with no definite pattern, during the weekend. If I forced empty the cookies, I was able to access to Home page (other pages were working well).

    I deactivated the plugin on Sunday and the problem hasn’t appeared again.

    What would be wrong?

    • This topic was modified 1 year, 11 months ago by Rafa Gallego.
    • This topic was modified 1 year, 11 months ago by Rafa Gallego.
    • This topic was modified 1 year, 11 months ago by Rafa Gallego.
    • This topic was modified 1 year, 11 months ago by Rafa Gallego.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rafa-gt

    Thank you for reaching out and I am happy to assist you with this.

    IF the issue continues to persists when the W3 Total Cache is disabled, it means that the problem is not related to the W3TC.

    The Location response header?indicates the URL to redirect a page to. It only provides a meaning when served with a 3xx (redirection) or 201 (created) status response.

    So either you have some redirect plugin or some custom redirects. Either way it’s not related to the W3 Total Cache.

    Thanks!

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello, Marko.

    No, no, the problem disapeared when I disabled W3. As I mentioned, it started on Thursday (I didn’t touch nothing or did something new in my web) and happened from time to time until I disabled W3 on Sunday. Since that day (Sunday evening) there has been no problem. The web is always accesible.

    I don’t want to activate again W3 because the problem will occur again.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rafa-gt

    Thank you for your feedback.

    Can you please manually delete the /cache/ folder from wp-config and re-enable the plugin?

    Are you using any security plugin by any chance?

    Thanks!

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello, Marko.

    Ok, I’ll try this night, because I don’t want to have problems during the day. I’ll be back with fresh news.

    Thank you.

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello again.

    It seems it works fine now. I deleted the “cache” folder from wp-content (I think you made a mistake, because you said wp-config ?? ), and since I reactivated the plugin until now there hasn’t been any issue. By the way, the only security plugin I have installed is “limit login attempts”, no more.

    What do you think it was the problem?

    Thank you.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rafa-gt

    Thank you for your feedback and sorry for the typo!
    I am not sure, possibly something like a plugin or theme redirected the page that was cached.

    Let me know if the issue re-occurs.

    Thanks!

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Ok Marko, thanks, but I don’t know which plugin or theme could have created the redirection because as I said I didn’t installed any new plugin or make any major changes….

    Well, the best thing is that it’s fixed, so great.

    Best regards!

    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello.

    1 day and a half and here is the issue again. This night, the redirection appeared and lasted 1 exact hour again.

    Looking for a possible answer of this bad bahaviour, I have found a folder named w3tc-config placed on plublic_html (root folder) and inside this folder there are 2 files: an empty index.html and a master.php file. If I look for “Gapito” in this file (the non-exist page where the redirection goes), I find this line:

    “redirect”: “Gapito”,

    There are other redirect: “” lines, but only that one with Gapito. I think this is a clue.

    Can I delete this folder a re-enable de W3 plugin again?

    EDIT: I’ve erased the word “Gapito” in that line. Maybe it helps.

    Regards.

    • This reply was modified 1 year, 11 months ago by Rafa Gallego.
    • This reply was modified 1 year, 11 months ago by Rafa Gallego.
    • This reply was modified 1 year, 11 months ago by Rafa Gallego.
    Thread Starter Rafa Gallego

    (@rafa-gt)

    Hello, @vmarko Please, any idea about my last reply?

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Too many redirects 302’ is closed to new replies.