Author Topic: Cannot add items to cart (IE only)  (Read 18332 times)

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Cannot add items to cart (IE only)
« on: April 29, 2013, 09:20:14 PM »
Hi,

I've been using this cart for a while getting ready to go live with my store. I recently did some testing in various browsers and I discovered that the add to cart functionality isn't working for any version of internet explorer. At first I thought I had done something wrong and did a test install of a completely blank version of 1.1.4 and sure enough I see the same problem. However, the demo instance on the main abantecart site does not have this problem. The site works fine in webkit browsers such as Chrome, etc

Does anyone else have this issue? Any ideas of the potential cause?

My environment-
Server 2008 R2 x64
PHP 5.4
IIS 7


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Cannot add items to cart (IE only)
« Reply #1 on: April 30, 2013, 05:04:47 AM »
hm.. please try to open some product page and return back to main page and then try to add to cart.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Cannot add items to cart (IE only)
« Reply #2 on: April 30, 2013, 08:00:21 PM »
IE version?
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #3 on: April 30, 2013, 08:56:58 PM »
I went to a product page then back to main page and got the same issue. I experience this issue both within the product page and on the main page. I am using a template (548) but the same problem happened when I did a fresh install with no template configured (completely brand new 1.1.4 instance).

My version of IE is 10 but it happens in all standards and quirks modes all the way down to IE7 using developer tools

The temporary site is w24.sextoyboutique.com.au (NSFW adult content)


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Cannot add items to cart (IE only)
« Reply #4 on: May 03, 2013, 04:31:12 AM »
i see that all links "add to cart" have href like this      http://w24.sextoyboutique.com.au/index.php?rt=checkout/cart&product_id=(some_id_of_product)
When you click you going to cart page and products added into it.
Are you want to add product to the cart by ajax call? (i mean without refreshing web-page).
i guess this template is not support it.
Otherwise all works correctly.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #5 on: May 03, 2013, 07:31:00 AM »
This is only in internet explorer that I have the issue. It works fine in chrome.

Putting in this link in internet explorer (any version) did not cause my cart to add the product:
eg w24.sextoyboutique.com.au/index.php?rt=checkout/cart&product_id=1269 <-- works fine in chrome, gives "Your shopping cart is empty" in internet explorer

I do not need ajax to work, I tried turning ajax functionality off and it still did not fix the problem

I need the cart to support internet explorer as a lot of users will try to use this browser. Were you able to reproduce the problem using internet explorer on my site?

I also got the exact same issue with NO template installed on a completely fresh machine. So I do not think it's the template causing the issue more like my server (php 5.4, IIS 7 on server 2008 R2)


Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #6 on: May 07, 2013, 10:22:23 PM »
Any suggestions here? Your statement that it works correctly is not true, did you confirm that you tested it using internet explorer and got a different result from what I reported?

This is a deal breaker for me, I need to be able to support internet explorer. I have already paid money for a template through your extensions system and spent many hours configuring products and my layout.

Please help I don't want to have to switch to a different cart provider

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #7 on: May 08, 2013, 02:38:38 AM »
Another big hint - account logins don't work in IE either. Something to do with session cookies? I've got my site added to trusted sites and on lowest security settings but it still happens.

Can something server side prevent IE from creating cookies? Perhaps the PHP session variables are being blocked somehow?

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #8 on: May 08, 2013, 07:06:56 AM »
I tried to rule out as many factors as possible today so I reprovisioned a completely new VM. I installed the following very carefully:

Apache 2.2
PHP 5.4.14
MySQL 5.6

I set up all the PHP dependancies, directory permissions, etc correctly (as shown by the validator): screencast.com/t/oeT78I4CDXW

The installation completed successfully. I loaded demo data.

I checked that the add to shopping cart process works fine in chrome, it does.

I then tried it in internet explorer and got the exact same issue I'm getting on my production instance. No product added to cart. Even passing the GET request to checkout/cart.php with the product_id I get the same issue.

This rules out IIS as a cause, also the template and also anything I have done regarding layout or database. This is a completely fresh install of abantecart on what should be a perfect system.

I then repeated this with abantecart 1.1.3 and 1.1.2 and got the same results so it's not like it's just a problem with the latest version.

I am completely at a loss as to what may cause this. I tried multiple computers with various versions of internet explorer and got the same problem. But if I go to the demo.abantecart.com site it works fine. So it's not a problem with my browser by itself either.

You can see the 1.1.2 install I did here- aws.sextoyboutique.com.au - you can see it works FINE with chrome but will NOT add products to the cart using internet explorer.

Can someone please try my test site with internet explorer and confirm they see the same issue so I don't feel like I'm going crazy here?

I'm willing to give the developers access to my VM so they can see for themselves how it's configured. This is a vanilla EC2 VM running server 2008 R2 in case anyone is wondering.

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #9 on: May 19, 2013, 08:35:06 PM »
Ok I've narrowed down the problem using developer tools in both chrome and IE and looking at each request step in detail. The problem is being caused by a new PHP session ID is being generated in the checkout/cart page - but only in internet explorer. So session cookies are being ignored or lost for whatever reason on the redirect.

The same problem does not occur when I use the demo.abantecart.com site, the same PHP session ID is retained through all stages of the product add process and the cart is correctly populated.

Would it be possible to get a sanitised copy of the httpd.conf being used on demo.abantecart.com perhaps there is some setting being used by default in apache (and IIS) that is causing the problem?

I can post logs of my network inspection to show the issue if that will help diagnose the cause?

Looking at the code I can't see where session_write_close() is being caused before the redirect, could that be the cause as per http://stackoverflow.com/questions/8071006/ie-not-passing-php-session-variables

Please help me here developers, I've spent weeks here trying to rule out everything I can think of and I'm truly stuck. I'm a system admin by trade I'm not a novice and I've isolated every component I can think of. You've been very helpful with any other issue I've had but this one is so major that I cannot use your cart solution if I cannot get a resolution.

I'm sure other people would come across this given I've got a very standard out of the box setup.

Please help!!


Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #10 on: May 19, 2013, 11:23:44 PM »
Very sorry for so many repeated posts but I keep getting more information and no-one else is replying!

The problem is definitely caused by windows (server 2008 R2 backend)!

Today I launched a new AWS unix instance and got the cart working fine in internet explorer out of the box.

So I know you guys have said you don't 100% support windows but it's pretty frustrating that it's in your supported platform documents but not properly supported. I would suggest removing that unless you're committed to closing down these types of issues for customers who for whatever reason need or want to use windows rather than unix.

I would be happy to help you isolate what is causing this in my windows VMs (yes multiple windows VMs from different providers all have the same issue - in both IIS 7.5 and win32 apache 2.2) but I am probably going to proceed with migrating everything in my production site to a unix VM now.

Hope this thread helps anyone else stuck in the same situation..






Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Cannot add items to cart (IE only)
« Reply #11 on: May 20, 2013, 06:22:12 AM »
sorry for silence.
I tried to open link that you gave (http://aws.sextoyboutique.com.au/index.php?rt=checkout/cart) in my IE under windows 7 and all works fine.
Also i tried to setup l.a.m.p. on my win7 and all works fine too in IE. I think you right.. cause is damn IIS.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #12 on: May 20, 2013, 07:12:17 AM »
the AWS sub domain is now my linux/apache install not windows anymore and I've taken my windows VM down while migrating my site content.

I can show you again if you wish to narrow down the cause or we can just write it off as windows not well supported  :)

Offline zemadfrenchman

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Cannot add items to cart (IE only)
« Reply #13 on: May 20, 2013, 08:04:11 AM »
sorry for silence.
I tried to open link that you gave (http://aws.sextoyboutique.com.au/index.php?rt=checkout/cart) in my IE under windows 7 and all works fine.
Also i tried to setup l.a.m.p. on my win7 and all works fine too in IE. I think you right.. cause is damn IIS.

I wanted to clarify - apache win 32 caused the same problem so it's not IIS, it's something about windows itself (unless the cause is in both default IIS and default apache 2.2 configurations)

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Cannot add items to cart (IE only)
« Reply #14 on: May 20, 2013, 08:22:19 AM »
I wanted to clarify - apache win 32 caused the same problem so it's not IIS, it's something about windows itself (unless the cause is in both default IIS and default apache 2.2 configurations)

Quote
Also i tried to setup l.a.m.p. on my win7 and all works fine too in IE.
i ran apache under win7 and tested it. all fine. By the way, one of us works on windows7 and uses apache everyday. I think problem with IIS exactly.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod