Posted: March 9, 2022 at 2:18 pm
Hello, I’ve seen this topic come up elsewhere but couldn’t find a solution that worked for me yet: Yesterday it came to my attention that users could no longer purchase tickets on my site. When they try to buy a ticket it says “An error has occurred: This happens across all events on the site now, seemingly out of nowhere as things were running smoothly a few days ago. Previously I had not updated Event Espresso or WordPress, but I did update EE today to 4.10.29.p in an attempt to solve the problem. Wordpress is on 5.8.3 Is there anything I can do? |
|
Hi there, Can you link me to an event I can view this on, please? |
|
This reply has been marked as private. | |
sure, we took down ticketing on the real events for now so we dont confuse customers, but here is a test that replicates the issue: https://timeandspace.org/calendar/test-event/ thanks! |
|
Hi there, It looks like you are using a custom ticket selector template and it needs a change to keep up to to date with the latest version of Event Espresso. Within the root directory of your site’s theme do you have a ticket selector template files? |
|
I’m looking at the root directory of the WordPress site, and I’m not sure what files to look for. We manage our templates through the WP interface. |
|
That’s the wrong location. EE will load template files from the root directory of your theme if you have any. {root}/wp-content/themes/{theme} Add a screenshot fo what you see if preferred and I’ll take a look. https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Okay, I found a file called “ticket_selector_chart.template.php” in the root of the theme directory. |
|
Ok, so that will be your issue, the template file in use there will be out of date to what Event Espresso is expecting. Basically anywhere that is outputting the tkt qty like this:
Needs to be updated to include the TKT_ID
Using whatever variable you are using to hold the Ticket/Ticket ID in that template. |
|
Thanks, that worked! |
|
You’re most welcome 🙂 Any further issues just let us know. |
|
The support post ‘"error has occurred You need to select a ticket quantity before you can proceed"’ 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.