Jump to content

Loop redirects on category front office


Recommended Posts

Hello everyone.

I have some isue with prestashop 1.5.4.1

Everything was fine until emplyers started to add products.

Now when I click on category which have products I have loop redirect 302.

For example : http://herdegen.na-s...egory&id_lang=5

have products and have loop.

But : http://herdegen.na-s...egory&id_lang=5

 

Doesn't have products and everything is fine.

 

Options in seo :

Friendly : off

Accented : off

Canonical : On

disable multiviews : On

But I've tried every combination.

 

php files wasn't touched. Only tpl files was modified.

 

Any idea how to fix this ?

Edited by sequencesc (see edit history)
Link to comment
Share on other sites

I was just about to post about the same problem. In Firefox it says "The page isn't redirecting properly." In Chrome it's "This webpage has a redirect loop." In Firebug I can see it's a 302 loop.

 

I've searched and found that other people have the same problem, and I've tried all of the suggestions. I didn't modify any php or tpl files (except to turn on Developer mode to see errors). It's not cookies. It seems to have something to do with adding products or categories. I think maybe it started after I added a category to the top menu. Same version of PrestaShop – 1.5.4.1.

 

Help!

Link to comment
Share on other sites

Thank you for trying to help Nemo1.

 

I have not modified .htaccess, but I tried deleting it. Some images stopped working. Tried turning off Friendly URLs and turning on "Disable apache multiviews" but neither affected the category redirect loop. I do have the warning "URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check..." but it is working because after PS regenerated the .htaccess the images re-appeared.

 

Any other ideas?

Link to comment
Share on other sites

Hi Benjamin,

I originally installed 1.5.2.0 and later upgraded to the current version, 1.5.4.1.

 

I have been developing this site bit by bit over several months, but I remember having this problem previously and I'm guessing now that the upgrade solved it. The problem did not show up again until later and as you can see from this thread, I don't remember exactly when it happened, but it was while adding products and categories.

 

I'm using a purchased template, but even if I switch to the default template, the problem remains. Test site is here: http://harvestacoustics.com

Click on any of the categories in the top or bottom menu to see the problem.

Edited by Wes Reimer (see edit history)
Link to comment
Share on other sites

OK, I tried about 5 times to post that reply, and it didn't work until I put spaces in the word.

 

Those 2 modules are showing warnings, not errors. I disabled both of them anyway, and it has no effect other than removing the warnings.

 

The categories that work have no products in them. As soon as I add products, they fail. I just confirmed this.

Link to comment
Share on other sites

What theme are you using and where did you purchase it from? You're right about the errors for the modules, sorry about that. I just wanted to make sure. Did this started happening after you upgraded to 1.5.4.1 or was it the same with 1.5.2. I wonder if the theme may be only compatible up to 1.5.2.

 

That said, can your hosting provider provide any information regarding this redirect loop? Maybe from looking at the server log?

Link to comment
Share on other sites

It's the Elation Base Liquid theme. I just checked and there is an update, so I'll see if that makes a difference. I didn't think the theme was the problem because I already tried switching back to the default theme and the problem remained.

 

I also tried disabling multistore just now, and again, no difference.

 

Regarding languages, if I insert /en/ into the URLs, I just get 404s.

Link to comment
Share on other sites

OK, I've updated the theme, and the problem remains.

 

Only English for both shops. I'm using multistore for multiple currencies, Canadian and US Dollars, and so that I can show different products available in Canada vs. international. At the moment, both stores are identical.

Link to comment
Share on other sites

UPDATE: I had another programmer debug this (since apparently PrestaShop doesn't want my money), and the problem was that the product records per page setting in the database was 0. After updating it to the default value of 10, the redirects stopped. Hallelujah! Now, if only I knew what caused that value to be set to zero...

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...