• Resolved otterly

    (@otterly)


    I’m leveraging the Eventbrite_Query function.

    I’ve connected to my App successfully.
    The organizer ID I provided has no public events, just two private events.
    I have set both the organizer_id and display_private variables appropriately.

    I’m getting the following error being thrown.
    It looks like these lines employ the array_filter function. Basically, the array they are trying to iterate through is null.

    Any idea why this would be happening?
    Could it be due to the lack of public events?

    Error below.

    Warning: array_filter() expects parameter 1 to be array, null given in /wp-content/plugins/eventbrite-api/inc/class-eventbrite-query.php on line 220

    Warning: array_filter() expects parameter 1 to be array, null given in /wp-content/plugins/eventbrite-api/inc/class-eventbrite-query.php on line 225

    https://www.ads-software.com/plugins/eventbrite-api/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Automattic

    (@automattic)

    Hm, that shouldn’t be a problem; results are first filtered by public/private, and then whatever remains gets filtered for the organizer ID. Will dig further into it.

    Thread Starter otterly

    (@otterly)

    Is it possible if an organizer only has private events that an error would be thrown?

    Conversely, if an organizer was just established and published their new events, could this error occur if those events haven’t propagated through yet? It usually takes 24 hours pulls via the API are possible.

    Just trying to root cause this error.

    Plugin Author Automattic

    (@automattic)

    Is it possible if an organizer only has private events that an error would be thrown?

    It shouldn’t; if it does, it’s a bug (will verify).

    Conversely, if an organizer was just established and published their new events, could this error occur if those events haven’t propagated through yet?

    Yes, the plugin does use transients for caching, which expire by default every 24 hours (this can be changed through the eventbrite_cache_expiry filter). This can lead to situations where if new events are added, they won’t show up for up to 24 hours on the site. A refresh can also be forced by just disconnecting and reconnecting the connection in Keyring.

    Plugin Author Automattic

    (@automattic)

    Hi, still looking in to this too.

    Plugin Author Automattic

    (@automattic)

    This was fixed as of v1.0.6 (most recent is v1.0.7).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Private Events – Eventbrite_Query Array_Filter Error’ is closed to new replies.