Solved it!!! add (array) in line 88
foreach ((array) $tickets as $ticket )
Solved it!!! add (array) in line 88
foreach ((array) $tickets as $ticket )
Here is the code..
* price followed by text noting higher priced tickets.
*/
function eventbrite_venue_get_event_ticket_price_string( $tickets ) {
foreach ( $tickets as $ticket ) {
if ( true == $ticket->free ) {
$prices[0] = ‘Free’;
} else {
$prices[$ticket->cost->value] = $ticket->cost->display;
}
}
// Events created with the API might have no price assigned
if ( empty( $prices ) ) {
return _x( ‘Price unknown’, ‘ticket price’, ‘eventbrite-venue’ );
}
I am having same issue. Any solutions? WARNING: INVALID ARGUMENT SUPPLIED FOR FOREACH() IN /HOMEPAGES/25/D433600875/HTDOCS/CLICKANDBUILDS/MOHSTRAININGLIST/WP-CONTENT/THEMES/EVENTBRITE-VENUE/INC/EVENTBRITE.PHP ON LINE 88