Support

Home Forums Event Espresso Premium Ticket selector errors with latest update

Ticket selector errors with latest update

Posted: July 19, 2017 at 9:00 am

Viewing 3 reply threads


deckchairuk

July 19, 2017 at 9:00 am

Hello!

We’ve just ran some updates to WordPress/EE and it’s caused some errors we’re keen to solve.

Here’s the logs of the errors, it looks like it’s related to the ticket selector shortcode.

[Wed Jul 19 13:54:27 2017] [warn] [client 193.240.188.189] mod_fcgid: stderr: Stack trace:

[Wed Jul 19 13:54:27 2017] [warn] [client 193.240.188.189] mod_fcgid: stderr: #0 /plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(117): EventEspresso\\core\\domain\\entities\\shortcodes\\EspressoTicketSelector->processShortcode(Array)

[Wed Jul 19 13:54:27 2017] [warn] [client 193.240.188.189] mod_fcgid: stderr: #1 /plugins/event-espresso-core-reg/core/services/cache/BasicCacheManager.php(96): EventEspresso\\core\\services\\shortcodes\\EspressoShortcode->EventEspresso\\core\\services\\shortcodes\\{closure}()

[Wed Jul 19 13:54:27 2017] [warn] [client 193.240.188.189] mod_fcgid: stderr: #2 /plugins/event-espresso-core-reg/core/domain/entities/shortcodes/EspressoTicketSelector.php on line 82

I’ve tried to solve it but can’t think of where the best place to start is, can you assist?

Thanks, Harry.


Josh

  • Support Staff

July 19, 2017 at 9:35 am

Hi Harry,

This looks like a stacktrace without the actual error. Is there an actual error before the stacktrace?

This is a guess, but the cause of the error could be you have a ticket selector shortcode on a page somewhere that’s pointing to an invalid event ID. So for example there’s a shortcode on a page like this:
[ESPRESSO_TICKET_SELECTOR event_id=11111111]

but there isn’t an event with that ID.


deckchairuk

July 24, 2017 at 5:06 am

Hi Josh,

Sorry I think I must have missed the actual error, I think it’s this one:

mod_fcgid: stderr: PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘A valid Event ID is required to use the "ESPRESSO_TICKET_SELECTOR" shortcode.<br />An Event with an ID of "0" could not be found.<br />Please verify that the shortcode added to this post's content includes an "event_id" argument and that it's value corresponds to a valid Event ID.’ in /var/www/vhosts/aerosol-soc.com/httpdocs/assets/plugins/event-espresso-core-reg/core/domain/entities/shortcodes/EspressoTicketSelector.php:82, referer: https://aerosol-soc.com/ <https://aerosol-soc.com/&gt;

Which would mean your guess was correct!

The shortcode is on the single espresso_events page, using the [ESPRESSO_TICKET_SELECTOR] shortcode, which means the event would have to exist if the page does. Could you see what else may cause this to happen?

Thanks, Harry.


Josh

  • Support Staff

July 24, 2017 at 8:22 am

Hi Harry,

Are you using the [ESPRESSO_TICKET_SELECTOR] shortcode without an event_id parameter set?

Viewing 3 reply threads

The support post ‘Ticket selector errors with latest update’ 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