Support

Home Forums Event Espresso Premium Plugin causing fatal WordPress error

Plugin causing fatal WordPress error

Posted: September 12, 2019 at 9:47 pm

Viewing 4 reply threads


Sarah Schoeller

September 12, 2019 at 9:47 pm

My site is crashing due to the below error. How do I fix this?

An error of type E_ERROR was caused in line 403 of the file /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/ProcessTicketSelector.php. Error message: Uncaught TypeError: Argument 1 passed to EventEspresso\modules\ticket_selector\ProcessTicketSelector::addTicketsToCart() must be of the type array, boolean given, called in /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/ProcessTicketSelector.php on line 213 and defined in /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/ProcessTicketSelector.php:403
Stack trace:
#0 /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/ProcessTicketSelector.php(213): EventEspresso\modules\ticket_selector\ProcessTicketSelector->addTicketsToCart(false)
#1 /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/EED_Ticket_Selector.module.php(226): EventEspresso\modules\ticket_selector\ProcessTicketSelector->processTicketSelections()
#2 /home/thevil15/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php


Seth Shoultes

  • Support Staff

September 13, 2019 at 6:20 am

Hi Sarah,

Were there any recent updates performed on your website? Can you please let us know what version of Event Espresso and WordPress are currently installed?


Sarah Schoeller

September 13, 2019 at 6:55 pm

This error occurs any time we use the dashboard or in particular any function within EE


Sarah Schoeller

September 13, 2019 at 7:23 pm

The version is 4.10.0


Tony

  • Support Staff

September 16, 2019 at 2:57 am

Hi Sarah,

That particular error should only be thrown when something is adding tickets to the EE event cart and, in short, something else when wrong (returned a boolean value, true/false) outside of that.

Loading up the dashboard does not add tickets to the cart so if you’re getting that error simply by navigating to Dashboard -> Event Espresso -> Events then it sounds like there something else going on and the above is a symptom of that.

Do you have any custom functions hooking into the FHEE__EED_Ticket_Selector__process_ticket_selections__valid_post_data hook within EE?

Looking at the front end of the site, I can add tickets to the cart without any errors (it uses the same function that is throwing an error above). S2 member prevents me from viewing the cart itself without a login but I can add tickets and see the number of tickets in the cart increases each time I do so this is working on the front end.

Any recent work done on the site which may match up with when this started happening?

Viewing 4 reply threads

The support post ‘Plugin causing fatal WordPress error’ 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