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 21 to 29 of 29
11 Jan 2012, 7:00 PM
#21
drbyte avatar

drbyte

Sensei

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

Add to the cart goes to Page cannot be found

nettrak,
Your problem is that your custom template isn't properly building input forms. It's probably based on a very old Zen Cart version, and the improved security (which protects against XSS, CSRF, SQL Injections, and more) in v1.5 is getting triggered because of the malformed form.
A proper upgrade includes upgrading ALL your customized files, including templates, language files, and more.
You need to finish those aspects of your upgrade for normal functionality to work.

11 Jan 2012, 7:02 PM
#22
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

drewrox:

Fixed it.

Turned out to be a problem with the config file and "DIR_WS_CATALOG" pointing to the wrong spot.
I'm very curious to know what it was set to and what you had to change it to .... and how it got the wrong spot in there in the first place.
Mind sharing?

11 Jan 2012, 7:23 PM
#23
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

Yes i don't understand how that would get changed. I think everything looks correct in my configure file....

11 Jan 2012, 7:29 PM
#24
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

DrByte:

nettrak,
Your problem is that your custom template isn't properly building input forms. It's probably based on a very old Zen Cart version, and the improved security (which protects against XSS, CSRF, SQL Injections, and more) in v1.5 is getting triggered because of the malformed form.
A proper upgrade includes upgrading ALL your customized files, including templates, language files, and more.
You need to finish those aspects of your upgrade for normal functionality to work.

Would the easy fix then be to use the older version of ZenCart which I know works with the template?

I'm unaware I guess at this point in how to make the customized function of the add to the cart work with 1.5

11 Jan 2012, 7:32 PM
#25
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

Well, with godaddy's hosting I suppose. . . . .

The weird thing is. .

I installed the zen-cart into the root of a hosted domain. The configuration defaulted to "/" on DIR_WS_CATALOG (made since to me. . .)

On my other installations, it set it as "/thedomain_com/". When I changed it from "/" to "/paulmarlinco_com/", it started working.

It must be rewriting the url's from the physical path, not the web path.

11 Jan 2012, 7:42 PM
#26
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

drewrox:

Well, with godaddy's hosting I suppose. . . . .

The weird thing is. .

I installed the zen-cart into the root of a hosted domain. The configuration defaulted to "/" on DIR_WS_CATALOG (made since to me. . .)

On my other installations, it set it as "/thedomain_com/". When I changed it from "/" to "/paulmarlinco_com/", it started working.

It must be rewriting the url's from the physical path, not the web path.
That's smacking of problems. Surely you don't want your website running from a subdirectory like http://www.paulmarlinco.com/paulmarlinco_com/

Most people want DIR_WS_CATALOG to be pointing to '/' because that's a more friendly presentation of the URL.

11 Jan 2012, 8:03 PM
#27
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

EXACTLY!

But apparently if you do that "/", even though the store is IN the root, it breaks the URL rewrite component. . . .

11 Jan 2012, 8:10 PM
#28
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

Zen Cart has no built-in URL rewrite component. Must be something amuck with the host.

27 Mar 2012, 3:11 PM
#29
djw2010 avatar

djw2010

New Zenner

Join Date:
Apr 2010
Posts:
2
Plugin Contributions:
0

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

nettrak:

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!

I had the same problem & mine was down to ssu.

Have you tried a complete fresh install?

If not then what I did is replace the ssu html output file with original supplied with zc1.5.

Hope this helps

Darryl