Jump to content

Category page redirect loop


voliveira

Recommended Posts

Hi,

I have upgraded from PS1.4.4.1 to PS1.5.2 and I'm having troubles with the category page

when trying to load the page the browser allways shows "This webpage has a redirect loop".

 

I removed the override file "override/controllers/CategoryController.php" (CategoryController extends CategoryControllerCore) but the problem continuous.

 

Int the original file "controllers/front/CategoryController.php" (CategoryControllerCore extends FrontController) I comment the lines 61 and 62:

 

at the method "canonicalRedirection"

 

 

if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category))
parent::canonicalRedirection($this->context->link->getCategoryLink($this->category));

 

and the page category.php loaded.

 

 

The old file "override/controllers/CategoryController.php" the CategoryController extends FrontController and it works fine but is not supose to.

 

What can I do to fix this using the CategoryController extends CategoryControllerCore?

 

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Maybe my problem is similar to yours. (Using latest git 1.5.2 version)

 

If I have a top-level category which includes at least one product, the category and product display and operate normally.

 

If I have a top-level category which does not include a product; instead, it includes a subcategory; and, under this subcategory includes a product, I get a redirect loop when I try to display the top-level category.

 

Message shown in Chrome is: The webpage at http://shop_url/category-page?selected_filters= has resulted in too many redirects.

 

It seems that whenever a category--at any level--does not directly include a product, the redirect loop problem is triggered.

 

Can you confirm that this is what you are seeing; or, if not, provide more details.

Link to comment
Share on other sites

Maybe my problem is similar to yours. (Using latest git 1.5.2 version)

 

If I have a top-level category which includes at least one product, the category and product display and operate normally.

 

If I have a top-level category which does not include a product; instead, it includes a subcategory; and, under this subcategory includes a product, I get a redirect loop when I try to display the top-level category.

 

Message shown in Chrome is: The webpage at http://shop_url/cate...lected_filters= has resulted in too many redirects.

 

It seems that whenever a category--at any level--does not directly include a product, the redirect loop problem is triggered.

 

Can you confirm that this is what you are seeing; or, if not, provide more details.

 

Yep, I too am experiencing this on the latest git development version. Exact same message from chrome, exact same steps to reproduce.

Link to comment
Share on other sites

  • 1 month later...

This was the fix for me, just execute the following insert in your database:

INSERT INTO `ps_category_shop` VALUES(1, IDshop, 0);

 

IDshop would be the numeric id of the shop having this problem, after that you will be able to see the categories section, click on "Add new root category" to create new one.

Link to comment
Share on other sites

  • 3 weeks later...

The url contains with two controller and page has error ... After upgrade presta 1.3 to 1.5 ....

 

 

I have done with all admin and htaccess settings..

 

 

This webpage has a redirect loop

The webpage at http://www.site.com/demo/index.php?controller=product-sort&controller=category&id_category=26&id_lang=1&3f99a2f33f7744ef0eca694ec6b1a644=6QRkGavLdXE%3DZ5GeGoDbhRk%3DxDL1GmsubWs%3D4T1q7BlwWP0%3Dw%2BoTBcIH3YM%3D42DuD6gCKn8%3DwlSaFdzJVkM%3DHhsUAPeJyYc%3DKstC%2B%2By%2BWpM%3Dqd%2BnqzLjGFs%3D000075&ff9681f45fc75c2317749ca6d18afc4e=6QRkGavLdXE%3DZ5GeGoDbhRk%3DxDL1GmsubWs%3Dy9V4ux5jCKs%3Dw%2BoTBcIH3YM%3DdL3Ym82sH2A%3DAQim1FJZLbs%3DOUCN4xRIV9k%3DVPN7v9mv084%3DzghDqDj4qRY%3DKR68I6RRens%3D4pE2hRqcrFo%3DoAseSH83qnw%3DH9WVHn%2BaTGs%3DrH%2Fz338MEeA%3DVnFKpshr8%2Bw%3D4yBsg1TH7fo%3DyIRbkyLpF3c%3DA%2B%2Fg2AmmQDs%3D7VMwOBf7AkQ%3DzZBh3r0xpj4%3D51PBaTDxRHo%3D75l%2BmZChB9g%3D2hDfcd1sNIc%3DQ8BF%2FeNW2ws%3D4%2BNFFarcotA%3DnCpM6l902%2FI%3DBRgODxSIzuE%3DUsQ9%2BAj0Vc4%3D000231&PHPSESSID=229d27c5759292c3b57a753f2fccbc03&__utma=171857084.405305366.1361886577.1361886577.1361886577.1&__utmb=171857084.5.10.1361886577&__utmc=171857084&__utmz=171857084.1361886577.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29&__unam=312b87c-13d16c40a71-250deb51-5 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

Here are some suggestions:

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

Any kind of help will be appreciated !

Edited by vishwajeet (see edit history)
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...