• Resolved databell96

    (@databell96)


    When I have debug mode turned on, I get two errors related to undefined index errors as is the following:

    Notice: Undefined index: number in /home/flsidf5/public_html/wp-content/plugins/widget-for-eventbrite-api/includes/class-eventbrite-api-widget.php on line 162

    Notice: Undefined index: order_by in /home/flsidf5/public_html/wp-content/plugins/widget-for-eventbrite-api/includes/class-eventbrite-api-widget.php on line 179

    Seems to relate to these pieces of code:

    $instance[‘number’] = (int) $new_instance[‘number’];

    $instance[‘order_by’] = sanitize_text_field( $new_instance[‘order_by’] );

    Any idea how to correct this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined Index Errors in class-eventbrite-api-widget.php’ is closed to new replies.