Script Issue

General ShopSite user discussion

Script Issue

Postby kiawah » Thu Sep 04, 2014 5:02 am

We updated our server (did not change hosts) and am now getting an error when someone tries to make a purchase.

This is what it says:

We're sorry, but there was an error in your form data!

You must specify a valid value for: storeid .

Please go back and try it again.

How can I fix this issue? Thank you.
kiawah
 
Posts: 30
Joined: Wed Jan 02, 2008 10:47 am

Re: Script Issue

Postby ShopSite Lauren » Thu Sep 04, 2014 8:34 am

What's the URL to your website where I can see this message? This error is often something that I see as a template issue. Are you using custom templates?
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Script Issue

Postby kiawah » Thu Sep 04, 2014 2:04 pm

www.smallbusinessforum.com/store/

Thank you.
kiawah
 
Posts: 30
Joined: Wed Jan 02, 2008 10:47 am

Re: Script Issue

Postby kiawah » Thu Sep 04, 2014 2:05 pm

I am not sure if we are using a custom template. Thank you.
kiawah
 
Posts: 30
Joined: Wed Jan 02, 2008 10:47 am

Re: Script Issue

Postby loren_d_c » Thu Sep 04, 2014 2:20 pm

you are using custom templates, but this is not a template issue. The add to cart form is submitting it's POST data (item number, storeid, etc) to the cart (order.cgi) at the following URL:

http://www.smallbusinessforum.com/cgi-bin/sc/order.cgi

But your webserver has some kind of auto redirect set up to send URLs with the domain starting with www. to the same URL without the www., and the POST'ed data is not preserved by this redirect. So you have 2 options: 1) remove this redirect so that the form submit to the www. domain works, or 2) go to the Preferences -> Hosting Service menu in your ShopSite and remove the 'www.' from the 'Shopping Cart CGIs URL' setting (the Publish) so that the add to cart form will submit to a URL without the 'www.' and will therefore not be redirected.

Note: a separate issue entirely, but I did see a problem with your more info pages when I viewed the source, they are missing the doctype and opening html and head tags at the beginning, and missing the closing /body and /html tags at the end. Consult the designer of your custom product template to address this issue.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Script Issue

Postby ShopSite Lauren » Thu Sep 04, 2014 2:29 pm

I have no idea (never seen this before), why this is the case, but when I change the form from method="post" to method="get" the form works. It is my limited understanding that the difference between get and post, from the server point of view, is the way they are encoded. I would suggest talking with your hosting provider to see if there are any server settings that might affect form methods post vs get.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Script Issue

Postby kiawah » Fri Sep 05, 2014 3:31 am

Hi - I changed the setting in Preferences and that worked. It allowed me to add to cart and checkout. Do you think that I still need to follow up with my hosting company? Thank you for your help.
kiawah
 
Posts: 30
Joined: Wed Jan 02, 2008 10:47 am

Re: Script Issue

Postby ShopSite Lauren » Fri Sep 05, 2014 8:36 am

If that fixed the issue, then you probably don't need to follow up with your host.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 97 guests