Zen Cart Logo
Forums / Upgrading to 1.5.x / Add to the cart goes to Page cannot be found

Add to the cart goes to Page cannot be found

Views: 3,557

Results 1 to 20 of 29
10 Jan 2012, 8:02 PM
#1
nettrak avatar

nettrak

New Zenner

Join Date:
Jan 2012
Posts:
11
Plugin Contributions:
0

Add to the cart goes to Page cannot be found

Ok i have a strange problem.

  • I'm using zencart 1.5
  • I installed a theme. Although I've gone back to the classic theme and problem persists
  • I have the module Simple SEO installed yet i've turned it off and still have same problem.

Problem: On my product info page when you click "add to the cart" it goes to my page not found page.

Interesting Scenario though: When you click on a Buy Now button it adds the product to the cart with no problem.

Examples of the problem: http://www.dresshaute.com/shop-by-color/black/black-dress

IF you go there and click "Add This To my Cart" you will see my issue.

However if you go here: http://www.dresshaute.com/products_all

and click on a "Buy Now" button it works as how I want the add to the cart button should work.

Does anyone know what I am doing wrong or what code needs to be examined or changed. I really don't want to reinstall everything and start from scratch but i know I may have to.

Thanks!

10 Jan 2012, 9:53 PM
#2
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Your seo module is still "turned on"
Turn it off and see if that works

10 Jan 2012, 10:04 PM
#3
nettrak avatar

nettrak

New Zenner

Join Date:
Jan 2012
Posts:
11
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

It's off now.

I had it on and off with the same results though.

Please recheck the examples now.

Thanks.

10 Jan 2012, 10:18 PM
#4
nettrak avatar

nettrak

New Zenner

Join Date:
Jan 2012
Posts:
11
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Upon further review it appears the Delete product button or update product button do not work either once you are able to get to the cart (only way to view cart items is to click the cart or go to the Buy Now button)

10 Jan 2012, 11:23 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Add to the cart goes to Page cannot be found

What is your setting for Admin->Configuration->My Store->Display Cart After Adding Product? Set it to True. Does the problem still continue?

11 Jan 2012, 4:33 PM
#6
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

I am having the same, if not a similar problem.

I deleted the Zen Cart Install, and put a fresh 1.5 copy up there, and ran through the installation.

I loaded the products, and I'm getting a 404 page not found when adding anything to a cart.

I have NOT loaded any SEO stuff.

Has anyone else noticed this?

11 Jan 2012, 4:42 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

We need more information. Please. Click reply and answer all of the questions in the Posting Tips section.

11 Jan 2012, 5:12 PM
#8
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

What version of Zen Cart? 1.5.0

Is it a new install or an upgrade? New

What the addons/contributions you have installed? None

What customizations have you made? None

What type of server are you using? Windows

Are you installing locally? No

What operating system? Unsure, on GoDaddy.Com 4GH Hosting

What version of PHP is installed on the server? 5.3

What version of MYSQL is installed on the server? 5.0

What you were doing when your problem occurred? Adding any item to the cart

What are the steps to reproduce the problem? Enter the quantity, and press "Add to Cart"

Have you attempted to fix the problem? Yes

What steps have you taken?

  • Tried deleting and re-adding items.
  • Tried moving items to other catetories.
  • Changed Admin -> My Store -> Display Cart After Adding Product Off tested (FAIL) back on (FAIL AGAIN)
  • Recopied the entire ZenCart Install over again (Copied over files minus configuration.php)

Any other details that might be important, i.e. the port number

The goofy thing is, using the same download of Zencart, copied over, I have another installation that's working fine. Initially i thought I must have goofed something up, so I blew everything away, INCLUDING the database and no dice.

Site is http://www.paulmarlinco.com

Thanks again, and sorry for not following the posting rules the first time.

11 Jan 2012, 5:47 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Add to the cart goes to Page cannot be found

What's the URL in your browser's address bar when you get this "page not found" response?

11 Jan 2012, 5:52 PM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Windows with GoDaddy? Oy!

11 Jan 2012, 5:52 PM
#11
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

It goes from:

'http://www.paulmarlinco.com/index.php?main_page=product_info&cPath=4&products_id=8&zenid=sqjqorpege03tncuaqfppl6kb3

To

'http://www.paulmarlinco.com/index.php?main_page=page_not_found&zenid=je4l4t5e2cearie1n3b4vu35i2

11 Jan 2012, 6:13 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Add to the cart goes to Page cannot be found

Admin->Configuration->My Store->Missing Page Check ... temporarily set this to "off", and see what happens when you try again.

11 Jan 2012, 6:26 PM
#13
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Just turned it off. Does not appear to be a change in behavior. Checked from 2 browsers both after clearing cache.

Is is possible something is screwed up in the database? Would it be worth it to blow it away again, and reinstall it?

11 Jan 2012, 6:32 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Add to the cart goes to Page cannot be found

It could be caused by several things:

  • a URL-rewrite rule/addon that's confused
  • missing folders and/or files in your /includes/modules/pages/ directory
  • PHP sessions problems preventing a session from being properly started or remembered from page to page ... which could be caused by cookie-blocking software or odd domain configurations which are masking the real location of files. Apache is definitely more reliable with this than IIS/Windoze
11 Jan 2012, 6:33 PM
#15
nettrak avatar

nettrak

New Zenner

Join Date:
Jan 2012
Posts:
11
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Dr Byte: Display cart after clicking is TRUE so i did not change that. I changed Missing Page Check to OFF and the exact same things occur.

Example problem: Click add to cart on this page: http://www.dresshaute.com/index.php?main_page=product_info&cPath=33_34&products_id=85&zenid=a835f6bf024d40983e433d34850ccabc

It goes to: http://www.dresshaute.com/index.php?main_page=page_not_found&zenid=a835f6bf024d40983e433d34850ccabc

Answering the questions below:
What version of Zen Cart are you using?
1.5

Has your site been upgraded? When? From what version(s)?
fresh install to 1.5 from scratch

HOW did you install it? (upload via FTP and run zc_install, or a one-click install from your hosting company? (one-click installs are NOT recommended))
I uploaded using FTP, created database, configured it all, ran the zc_install, had simple SEO professionally installed, installed a purchased template. Turned Simple SEO off and still replicates problem. Turned off template back to classic (still same problem)

In what ways is your site customized or different from a brand new uncustomized install?
Theme is installed and Simple SEO. On another domain i have installed this theme on a 1.39 version and had no problems (minus SIMPLE SEO though)

If you're encountering display/layout problems, post your site URL* so it can be seen in action.
address: http://www.dresshaute.com (again the problem is only adding to the cart with the add to cart buttons; the buy now buttons work great, somehow if i could use that function on the add to the cart buttons i would be fixed)

If you're encountering problems that could be related to your server or hosting company, include the name of your hosting company (not their URL).
I don't believe this is server related.

Have you searched the FORUM for your error message or for answers to the question you're asking?
Yes.

WHEN did the problem "start"? How does that compare with other events of your hosting company, changes you've made to your site files/addons, or your admin settings, etc?
I am unsure because I never checked the add to the cart buttons at all. Then i checked them after the Simple SEO was installed and it did not work. However with SEO off it still happens. I'm trying to avoid a fresh new reinstall if possible.

I hope this information helps. I think it has something to do with the coding but i have no idea what. I just don't get how the Buy Now buttons works as the function i want it too by adding the product and displaying the cart. How can i replicate that function to the add to the cart?

11 Jan 2012, 6:34 PM
#16
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

DrByte:

It could be caused by several things:

  • a URL-rewrite rule/addon that's confused
  • missing folders and/or files in your /includes/modules/pages/ directory
  • PHP sessions problems preventing a session from being properly started or remembered from page to page ... which could be caused by cookie-blocking software or odd domain configurations which are masking the real location of files. Apache is definitely more reliable with this than IIS/Windoze

K. Well, before I dig too much deeper. I'm going to drop the database, and reload it one more time.

I have verified all folders and files are present.

11 Jan 2012, 6:49 PM
#17
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

How weird! Same thing. . . . .

11 Jan 2012, 6:55 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Add to the cart goes to Page cannot be found

I do notice that your site is very slow. I'm guessing that's cuz it's on a typical GoDaddy overloaded slow server.
And on windoze at that. To quote Kim, "Oy!"

Is there a particular business reason why you're running your site on a windows server? Most every time we convince someone to switch off Windoze (ESPECIALLY with GoDaddy), they instantly find all their odd problems go away.

11 Jan 2012, 6:56 PM
#19
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

Fixed it.

Turned out to be a problem with the config file and "DIR_WS_CATALOG" pointing to the wrong spot.

Thanks for the idea of the URL rewrite, or I don't think I would have thought to look there.

11 Jan 2012, 6:57 PM
#20
drewrox avatar

drewrox

New Zenner

Join Date:
Jan 2012
Posts:
10
Plugin Contributions:
0

Re: Add to the cart goes to Page cannot be found

I do a lot of .Net Programming, which is why I'm using Windows.

I may just need to pick up a second hosting account with Linux after all for the Zen's and Word Presses and such.