Posted: November 6, 2019 at 2:34 pm
|
I get this when I go to ticketing. Fatal error: Method EventEspresso\modules\ticket_selector\TicketSelectorStandard::__toString() must not throw an exception, caught ArgumentCountError: Too few arguments to function tw_output_details_before_the_ts(), 1 passed in /home/gagensoc/public_html/new/new/website/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/gagensoc/public_html/new/new/website/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/DisplayTicketSelector.php on line 0 here is the website page where WP Debug showing: https://ighr.gagensociety.org/courses/prototype-methods-and-sources-test/ I didn’t happen over the Spring in 2019… |
Hi, The error message indicates something to do with a “tw_output_details_before_the_ts” function, which isn’t a function provided in EE4 core. Can you find the code that has the tw_output_details_before_the_ts() function and post its contents here? It may be in a separate plugin installed on your site. |
|
|
How/where would I look? |
|
I believe this is the problem in the template Funtions (I added a while back): |
|
It was the last line. Can this be altered for the newer version? add_action( ‘AHEE__ticket_selector_chart__template__before_ticket_selector’, ‘tw_output_details_before_the_ts’, 10, 2 ); |
Actually I’m not sure how that code would have worked, ever. The AHEE__ticket_selector_chart__template__before_ticket_selector action hook passes one argument, and your code has two. Here’s what you can do to fix: then change |
|
|
That fixed everything I got from Github last year! |
The support post ‘Ticketing Selector 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.