Forums / General Questions / automatic redirect to main_page=product_info&products_id=1 when calling index.php

automatic redirect to main_page=product_info&products_id=1 when calling index.php

Views: 317

Results 1 to 3 of 3
27 Nov 2018, 1:30 PM
#1
guntersammet avatar

guntersammet

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

automatic redirect to main_page=product_info&products_id=1 when calling index.php

Hi all:
When there are no products, the Home page (index.php / "Congratulations! You have successfully installed your Zen Cart® E-Commerce Solution.
Welcome, please enjoy our online showcase.") page shows just fine. As soon as I populate the products with my custom import script, clicking the home button redirects to index.php?main_page=product_info&products_id=1. The products_type is set to 1.

Been going through the code but haven't had much luck so far to figure out where it's redirected. Haven't worked with Zen Cart in a while so need to get up to speed again. Any pointers are appreciated.
Thanks,

Gunter

27 Nov 2018, 4:00 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: automatic redirect to main_page=product_info&products_id=1 when calling index.php

Do you have at that point just one category and one product or is there more involved/something different and the redirect is occurring?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Nov 2018, 4:11 PM
#3
guntersammet avatar

guntersammet

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Re: automatic redirect to main_page=product_info&products_id=1 when calling index.php

mc12345678:

Do you have at that point just one category and one product or is there more involved/something different and the redirect is occurring?

There are multiple categories. They have been set up manually and stay there.

Actually your question made me check if all categories in products_to_categories exist. Product ID 1 had 0 for categories ID. Changed that to a non 0 value and that seems to have fixed the issue.

Not sure why, but it solved the issue. Thanks!

Gunter