We are getting the follownig error message
Warning: reset() expects parameter 1 to be array, string given in …./wp-content/themes/jupiter-child/espresso-events-table-template.template.php on line 130 Please advise how we can get this resolved. Thanks
I’ve resaved the changes and am now getting the following error
application/x-httpd-php espresso-events-table-template.template.php PHP script text
The code from line 127 is as follows:
if ( ! $event->is_sold_out() ) {
// grab array of EE_Ticket objects for event
$tickets = EEH_Event_View::event_tickets_available( $post->ID );
// grab first ticket from array
$ticket = reset( $tickets );
//check if the ticket is free, if set the ticket price to ‘Free’
if ( $ticket instanceof EE_Ticket ) {
$ticket_price = $ticket->pretty_price();
$ticket_price_data_value = $ticket->price();
$ticket_price = $ticket_price_data_value == 0 ? __( ‘Free’, ‘event_espresso’ ) : $ticket_price;
}
Thank you – am not sure how that ended up in there. It’s all ok now.
Viewing 8 reply threads
The support post ‘Error in e/jupiter-child/espresso-events-table-template.templat’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.