Support

Home Forums Event Espresso Premium Events Won't Add to Cart

Events Won't Add to Cart

Posted: August 24, 2017 at 7:40 pm


Greg Dietrich

August 24, 2017 at 7:40 pm

For some reason, events will not add to cart. We are clicking on add to cart, however, when we get to the cart screen we are met with this message:

“It looks like you are attempting to refresh a page after completing your registration or your cart is empty. Please go to the events page and try again.”

https://itsabouttime.run


Greg Dietrich

August 24, 2017 at 8:01 pm

Also, for what it is worth…we are hosted with FlyWheel and we have all caching turned off. We run DNS through CloudFlare, but have caching turned off there too. We don’t have any caching plugins installed either.

I am seeing this PHP Notice in my PHP error log:

[24-Aug-2017 21:53:57 America/New_York] PHP Notice: Array to string conversion in /www/wp-content/plugins/event-espresso/includes/functions/cart.php on line 82


Greg Dietrich

August 24, 2017 at 8:05 pm

And hopefully last update: because of this issue, we’ve changed the URL to http://dev.itsabouttime.run


Josh

  • Support Staff

August 24, 2017 at 8:38 pm

Hi Greg,

Have you ruled out potential plugin conflicts by temporarily deactivating other plugins? I checked you site and it seems the session is getting reset on every page load/request and isn’t maintaining state between requests.


Greg Dietrich

August 24, 2017 at 8:42 pm

Yes, currently only the EE plugins are active: http://d.pr/i/eGVhuT.

I even flipped over to a default theme as well.


Josh

  • Support Staff

August 24, 2017 at 8:50 pm

Can you contact your host and have them check that your session folder has the correct permissions for your site user to read and write sessions?

The only other thing that I can think of that would cause this issue would be an https to http mismatch where the front end was forced to load https and wp-admin/admin-ajax.php was forced to load http (or vice versa). That doesn’t appear to be happening on your site though.


Greg Dietrich

August 25, 2017 at 9:58 am

So, this just in from my host:

We have previously had sites on Flywheel that used Event Espresso and required that this path /registration-checkout/ have an exception set. We went ahead and did this, even though the caching is currently off, so that you could further test.

We also reset the permissions on the site and this should help on any permissions that may have not been set properly there.

So I checked things out and it still appears to be an issue. Any other ideas here?


Josh

  • Support Staff

August 25, 2017 at 10:45 am

It seems Flywheel thinks your site has Event Espresso 4. The URL path on your site that has the cart is actually event-registration.

The permissions on the site have nothing to do with the session path. The permissions that need to be checked and possibly reset are the permissions for the session path, which is set in the php config file as session.save_path. They should also verify that the path set there exists.


Greg Dietrich

August 25, 2017 at 8:18 pm

OK, so after working with Flywheel a bit more it seems like the issue might be php 7.1. I thought I’ve seen that EE is good to go with 7.1. No? It is running fine on 7.0, that is what I old server was.


Josh

  • Support Staff

August 26, 2017 at 10:49 am

Event Espresso 4 is PHP 7.1 compatible. The end of any significant development of Event Espresso 3 happened in 2013, which at the time PHP 5.5 was the current version of PHP.

If you’d like to use PHP 7.1 you’ll need to migrate to Event Espresso 4.


Greg Dietrich

August 26, 2017 at 12:12 pm

Well there we have it then.

The support post ‘Events Won't Add to Cart’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Greg Dietrich 2 years, 2 months ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.