Jump to content

'view cart' malformed URL


Guest IanSaunders

Recommended Posts

Guest IanSaunders

Hi All,

I have a problem woith a customer's site. If you click the 'View Basket' button within the cart box, it breaks...

in the source code, the link points to http://www.collarandcuff.co.uk/index.php?_g=co&_a=cart

when you follow the link, you get a 404 page not found error and the address bar shows https://www.collarandcuff.co.uk//index.phpindex.php?_g=co&_a=cart&ccUser=eljhojfesj0hqrbkg45mchlq84

within the template file, the link points to: "index.php?_g=co&_a={CART_STEP}"

if you manually remove the superfluous '/index.php' underlined above) in the address bar, you can reach the cart.

Evidently something is rewriting the URL after the click, and it's not doing a very good job of it.

Can anyone shed any light on why this is happening and how I go about fixing it?

Link to comment
Share on other sites

Guest IanSaunders

After a bit of experimenting, I've discovered that I can get to the cart if I change the protocol in the URL from HTTP:// to HTTPS://

As a result, I've included the absolute path in the template using HTTPS:// which appears to work, but feels like the wrong way to resolve this. I'd appreciate any thoughts...

it now points to: "https://www.collarandcuff.co.uk/index.php?_g=co&_a={CART_STEP}"

Link to comment
Share on other sites

Guest Roger Huston

Obviously you are getting an extra index.php added to your path. I would check two spots.

1. CubeCart settings. Make sure you absolute and relative path settings are correct and do not contain index.php. Some people copy and paste the url from their store, which can cause this problem.

2. htaccess. Some people have added a 301 redirect to www version of the store and if you do not do this right, it can add the index.php to the end of the string.

- Roger

Link to comment
Share on other sites

Guest IanSaunders

Thanks for your reply Roger. I've had a look in the settings, and neither absolute nor relative for both http and https reference index.php.

There's also not a .htaccess file, so I don't think it's that either.

Any other suggestions?

Link to comment
Share on other sites

I've had a look in the settings, and neither absolute nor relative for both http and https reference index.php.
In General Settings SSL section? (just clarifying). So the site works fine when SSL is disabled? What release of v4 are you on?
Link to comment
Share on other sites

Guest IanSaunders

I've had a look in the settings, and neither absolute nor relative for both http and https reference index.php.
In General Settings SSL section? (just clarifying). So the site works fine when SSL is disabled? What release of v4 are you on?

Yes, in the general ssl section. The site works fine with SSL disabled, and the version is 4.3.3

Go easy on me, I'm a CubeCart newbie... :zorro:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...