Support

Home Forums Multiple Event Registration Add-on MER Losing Session in IE9

MER Losing Session in IE9

Posted: August 30, 2012 at 3:42 pm


Adam

August 30, 2012 at 3:42 pm

I have a strange issue that seems to be related to Internet Explorer 9. When I click to add an event to the cart, it appears to add, but proceeding to the cart returns an empty cart. The same page works perfectly in Firefox 15 and Chrome.

To reproduce the error, simply add an event to the cart in IE9. Then reload the registration page. In FF and Chrome, you see the link has changed to “View Cart”, but in IE9, it goes back to “Add to Cart”. If you click to “View Cart”, it tells you that your cart is empty.

Further troubleshooting indicates that the EE session is being lost. Perhaps it is related to a Prefetching issue that I came across…

In any case, when I profiled the page in dynaTrace AJAX (allowing me to debug the dynamic xhtml and ajax calls), I found it pointing to event_espresso_do_ajax (espresso_cart_functions.js, line 369) Deeper in the trace, cart.php encountered an undefined index of ‘espresso_session’on line 25. Which again points to the missing session when trying to add the event to the cart.

I would be happy to provide further screen shots and debugging info if that would be helpful.

What would you suggest to further troubleshoot/resolve this issue?

I am using EE 3.1.26P on a current version of XAMP, running on Windows 7 x64. I have tried updating and renaming the uploads/templates folder with no effect on the issue. (Also tried changing themes, disabling all plugins, etc…)


Chris Reynolds

  • Support Staff

September 3, 2012 at 10:32 am

Thanks. We will need to take a look at this. I will get back to you when I know something.


Sidney Harrell

September 4, 2012 at 4:33 pm

Hey Awaller,
I’ve been doing some testing, and I’m having trouble reproducing the error. I’m using IE9 to look at http://eetesting.info/EE_branch, and it seems fine. I have it displaying the session data at the top of the page. Are you using IE’s compatibility mode?


Adam

September 4, 2012 at 4:48 pm

Hi Sidney,

Thanks for taking a look! After further testing today, it seems to be related to my local WP/EE installation, rather than across the board. The eetesting site works fine for me in the same browser, and the MER functions appear to run fine after I configured the plugin on the actual Web server.
Could be an issue with my local XAMPP/WordPress/XDebug configuration.
Thanks again for checking on this! I will go ahead and mark this one resolved, since it sounds more like an issue on my end.

  • Adam


Sidney Harrell

September 4, 2012 at 5:16 pm

It could be. You can try putting that same debug code on your site and see if the espresso_session id is changing on you. I put

if (!is_admin()) var_dump($_SESSION);

at line 149 of espresso.php, but anywhere above that should work, too.

The support post ‘MER Losing Session in IE9’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso