• mohsadmin

    (@mohsadmin)


    I am having the following error. WARNING: INVALID ARGUMENT SUPPLIED FOR FOREACH() IN /HOMEPAGES/25/D433600875/HTDOCS/CLICKANDBUILDS/MOHSTRAININGLIST/WP-CONTENT/THEMES/EVENTBRITE-VENUE/INC/EVENTBRITE.PHP ON LINE 88 and the price is showing known.

    Any suggestions? Many Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mohsadmin

    (@mohsadmin)

    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’ );
    }

    Thread Starter mohsadmin

    (@mohsadmin)

    Solved it!!! add (array) in line 88

    foreach ((array) $tickets as $ticket )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘EventBrite Theme.’ is closed to new replies.