Posted: 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.” |
|
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 |
|
And hopefully last update: because of this issue, we’ve changed the URL to http://dev.itsabouttime.run |
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. |
|
|
Yes, currently only the EE plugins are active: http://d.pr/i/eGVhuT. I even flipped over to a default theme as well. |
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. |
|
|
So, this just in from my host: We have previously had sites on Flywheel that used Event Espresso and required that this path 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? |
It seems Flywheel thinks your site has Event Espresso 4. The URL path on your site that has the cart is actually 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. |
|
|
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. |
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. |
|
|
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.