advanced-queries.php on line 180

WordPress Event Management, Calendars & Registration Forums Report A Bug advanced-queries.php on line 180

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #37518


    in my error-log i found follow error:

    Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/…./httpdocs/…./wp-content/plugins/event-organiser-pro/includes/advanced-queries.php on line 180

    how can i fix it?


    Hi Jonathan,

    That line reads:

     if ( in_array( 'event-venue', $args['taxonomy'] ) && ! empty( $args['meta_query'] ) ) {

    it should read

     if ( !empty($args['taxonomy']) && in_array( 'event-venue', $args['taxonomy'] ) && ! empty( $args['meta_query'] ) ) {

    I’ll fix this in the next update; it’s a harmless bug though: not fixing it won’t impact the functioning of the plug-in.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.