Jump to content

[SOLVED] Can't access backoffice (too many redirects)


Recommended Posts

Hi,

My site was on Prestashop Ready but as they're stopping the service I moved it on another hosting (Gandi Simple Hosting). But since I did it I cannot access my back office because of a redirect loop. The Front office seems fine, even if it is useless as the site is on maintenance stage.

It was accessible on fresh install, before I imported the data from my Prestashop ready hosting, so I don't think it comes from my hosting (but I still asked help on their side too)

I've exported the data from prestashop ready, I changed PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and ps_shop_url in the database dump before importing it.

I changed COOKIE_IV, NEW_COOKIE_KEY, COOKIE_KEY and SECRET in parameters.

I tried :

  • to disable (temporarily) https, on hosting side and prestahop side
  • to remove .htaccess on project root
  • to disable link rewritting
  • to disable apache multiview

And of course clearing cache (browser, application and even varnish) before each try.

I'm out of leads to what to do next to access my back office. Any idea ?

Link to comment
Share on other sites

Lol indeed...

It would be convenient and easy for me to put the blame on my hosting, or Prestashop, but the fact that it also do not work locally seems to point on error coming from me... I must have forgot to configure something.

(when I said I asked my hosting for help too, I didn't said it was prior to this post, it's in parallel. They are helping me right now)

Link to comment
Share on other sites

gotcha, well there are other possibilities with some mis-config of course....but ps out of the box, with above fields set properly is pretty robust...and we do loads and loads of dev copies, prod copies...without issue.....so much easier for most experienced community members to solve with hands on, now we must just best guess and if nothing else hold hands...it takes a village.

if you get really stuck, message me and we take a look at it for free...

Link to comment
Share on other sites

Tanks a lot for the proposition, I don't know if it helps but here are my local server logs :
 

[Fri Mar 13 11:18:30 2020] 127.0.0.1:55226 [302]: GET /backoffice
[Fri Mar 13 11:18:30 2020] 127.0.0.1:55226 Closing
[Fri Mar 13 11:18:30 2020] 127.0.0.1:55238 Accepted
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55238 [302]: GET /backoffice/index.php?controller=AdminLogin&token=04d4595f1417292fa37ceba2fe487b18
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55238 Closing
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55246 Accepted
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55246 [302]: GET /backoffice/index.php?controller=AdminLogin&token=04d4595f1417292fa37ceba2fe487b18
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55246 Closing
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55254 Accepted
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55254 [302]: GET /backoffice/index.php?controller=AdminLogin&token=04d4595f1417292fa37ceba2fe487b18
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55254 Closing
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55262 Accepted
[Fri Mar 13 11:18:31 2020] 127.0.0.1:55262 [302]: GET /backoffice/index.php?controller=AdminLogin&token=04d4595f1417292fa37ceba2fe487b18

And it goes on and on until the "too many redirects" error. In this example the https is disabled.

Link to comment
Share on other sites

OMG I'm such a dumb f***er...

When copying my data from old site I did a

mv modules ~/dev/presta/modules/

You see that little "/" at the end of my command, I had moved my old module folder inside my new one, instead of replacing it. So my modules were in /modules/modules, not in /modules.

I feel sooooo dumb.

 

Well, still thanks for your help !

Link to comment
Share on other sites

  • Quentin Caillaud changed the title to [SOLVED] Can't access backoffice (too many redirects)
13 hours ago, Quentin Caillaud said:

OMG I'm such a dumb f***er...

When copying my data from old site I did a


mv modules ~/dev/presta/modules/

You see that little "/" at the end of my command, I had moved my old module folder inside my new one, instead of replacing it. So my modules were in /modules/modules, not in /modules.

I feel sooooo dumb.

 

Well, still thanks for your help !

this is perfect example of having a 'robust' hosting control panel.  We highly recommend Plesk over Cpanel....then you have the tools build in where you are not using barbaric tools, ssh/putty etc.  I'ts not you it's your control panel lol.  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...