Forums / Customization from the Admin / Homepage instantly redirects to product page - not sure why

Homepage instantly redirects to product page - not sure why

Locked

Started by creativearc on 12 Oct 2007, 3:10 PM · Views: 2,566

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Oct 2007, 3:10 PM
#1
creativearc avatar

creativearc

New Zenner

Join Date:
Feb 2007
Posts:
65
Plugin Contributions:
0

Homepage instantly redirects to product page - not sure why

For some reason, when I click the 'home' link, which is pointed at the index of my domain, it redirects to:

/index.php?main_page=product_info&products_id=312

I've never had this happen before.

I checked the access_log and error_log on my server, but there is nothing there.

Is there a configuration setting in the admin where I could somehow 'disabled' the home page?

Creative Arc - Minneapolis Web Design

12 Oct 2007, 3:38 PM
#2
creativearc avatar

creativearc

New Zenner

Join Date:
Feb 2007
Posts:
65
Plugin Contributions:
0

Re: Homepage instantly redirects to product page - not sure why

Not sure if this has any bearing, but I wanted to see what the php output of index.php was from the shell. This is what I got:

-bash-3.00$ php -e index.php 
Status: 302
X-Powered-By: PHP/4.3.9
Set-Cookie: zenid=5a135bc5bd9c4463d34bd18825fb2490; path=/; domain=(my ip hidden)
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html; charset=iso-8859-1
Location: http://(my ip hidden)/index.php?main_page=product_info&products_id=312&zenid=5a135bc5bd9c4463d34bd18825fb2490

Creative Arc - Minneapolis Web Design

17 Oct 2007, 6:06 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Homepage instantly redirects to product page - not sure why

Could be php 4.3.9 ... could be old code ...

It is hard to see anything without access to the site ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Oct 2007, 6:19 PM
#4
creativearc avatar

creativearc

New Zenner

Join Date:
Feb 2007
Posts:
65
Plugin Contributions:
0

Re: Homepage instantly redirects to product page - not sure why

Ajeh:

Could be php 4.3.9 ... could be old code ...

It is hard to see anything without access to the site ...

Ajeh:

I'll PM it to you. (for privacy reasons)

Creative Arc - Minneapolis Web Design

17 Oct 2007, 6:34 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Homepage instantly redirects to product page - not sure why

Is products_id 312 sitting in the Top Level directory?

Categories hold Products or Categories but not both ...

It looks like either this is in the Top Level Category and Linked to the Electronics Category or you have something wrong with your database table products_to_categories and should search this table in phpMyAdmin to see what categories_id come up for products_id = 312

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Oct 2007, 6:44 PM
#6
creativearc avatar

creativearc

New Zenner

Join Date:
Feb 2007
Posts:
65
Plugin Contributions:
0

Re: Homepage instantly redirects to product page - not sure why

Ajeh:

Is products_id 312 sitting in the Top Level directory?

Categories hold Products or Categories but not both ...

It looks like either this is in the Top Level Category and Linked to the Electronics Category or you have something wrong with your database table products_to_categories and should search this table in phpMyAdmin to see what categories_id come up for products_id = 312

Fantastic! That was it.

I'm embarrassed - such an 'elementary' problem and solution. I'm usually more careful with my categories so I've never had this happen.

Thank you!

Creative Arc - Minneapolis Web Design

17 Oct 2007, 6:47 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Homepage instantly redirects to product page - not sure why

No problem Watson ... glad to have helped you solve the case of the mystery redirect ... :smartalec:

NOTE: The cause of this was hitting categories_id 0 (top level) with only 1 product and the Skip Product Listing on Categories with <= 1 product ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!