Support

Home Forums Event Espresso Premium Error happen when I try to delete a ticket

Error happen when I try to delete a ticket

Posted: June 30, 2019 at 2:15 am

Viewing 3 reply threads


antoni974

June 30, 2019 at 2:15 am

Hello,

It has been a while that I have that issue. When I delete a ticket from an event and publish I am getting an error (WordPress send me en email).

G’day!

Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Event Espresso.

First, visit your website (https://www.bucketlistdiver.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.bucketlistdiver.com/wp-admin/post.php) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

https://www.bucketlistdiver.com/wp-login.php?action=enter_recovery_mode&rm_token=wQwdMrHWhMoAGGDxIGoRkK&rm_key=RDRa9mTuSX1VwxrXlZ2PaL

To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

Error Details
=============
An error of type E_ERROR was caused in line 497 of the file /home3/bucketp9/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php. Error message: Uncaught Error: Call to a member function start_date_and_time() on null in /home3/bucketp9/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php:497
Stack trace:
#0 /home3/bucketp9/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php(283): espresso_events_Pricing_Hooks->_update_tickets(Object(EE_Event), Array, Array)
#1 /home3/bucketp9/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1020): espresso_events_Pricing_Hooks->datetime_and_tickets_caf_update(Object(EE_Event), Array)
#2 /home3/bucketp9/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(994): Events_Admin_Page->_insert_update_cpt_item(11889, Object(WP_Post))
#3 /home3/bucketp9/public_html/wp-includes/class-wp-hook.php(286): EE_Admin_Page_CPT->insert_update(11889, Object(WP_Post), true)
#4 /home3/bucketp9/public_html/w

Any ideas to sort that problem out? I have been told before to set my max_input_vars to 3000 but that did not make it work.


Tony

  • Support Staff

July 1, 2019 at 3:41 am

Hi there,

The error your getting is actually nothing to do with a ‘ticket’ in the code so its likely that whilst deleting the ticket is showing the symptom, the causing is something else.

Usually when the above error is thrown is due to to the page having more inputs than your server allows (the max_input_vars setting), now I know you’ve raised that to 3000, but that’s an example as it depends on the plugins you are using and your theme loading various options everywhere as to how many inputs are loading on the page. We’ve seen some themes add 14,000 inputs to the page, that’s not including EE own’s inputs.

If you open your event editor (Event Espresso -> Events -> {click on the event name}) then open Chrome Dev Tools or similar and look in the elements tab and pref CTRL+F (CMD+F on mac) and search for ‘input’, how many does it return?

It should look something like this: https://monosnap.com/file/Nf8CvkgFf5uhVpUyAE3RS8a51yhR9f


antoni974

July 2, 2019 at 11:34 pm

Hello,

I recently contacted my host to get my max imput up to 4000.

I followed your instructions and got 408 inputs. https://ibb.co/hHVg8sP


Tony

  • Support Staff

July 3, 2019 at 3:28 am

Hmm, ok.

At 408 inputs its not max_input_vars.

What are the 5 errors shown in your screenshot? (Go to ‘Console’ and you’ll see the errors)

If you create a new event and pulish, then make a text change in the description and save, it works? It’s only when you delete a ticket on the event?

Viewing 3 reply threads

The support post ‘Error happen when I try to delete a ticket’ 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