• Resolved rangeday20

    (@rangeday20)


    Hi there, I’m getting the following error code displaying on the plugin itself, in the placements tab: Warning: array_filter() expects parameter 1 to be array, bool given in /home/customer/www/website/public_html/wp-content/plugins/advanced-ads/src/Placement_Type.php on line 185

    I tried to open a support ticket but got the message that they may not get back to me until the next workday which seems to be on Monday. I’d like to fix this issue before then if possible. I’ve gone through my plugins, theme, etc., to make sure everything was up to date. There is one plugin that is set to auto update in a few hours which I deactivated and tested.

    No matter what I try I can’t seem to get this error message to go away, nor the ads to appear.

    I uninstalled the all of the pro plugins, as well as the standard plugin. I then reinstalled the standard plugin, only, and still get this message. I reinstalled the necessary pro plugins and still get the message.

    At first, it goes away after I make a change. Then, when I hit the save button it appears again.

    This is what the code looks like from lines 182 to 191:

    // check if the group has allowed ads.

                $group_ads = array_filter( $group->get_all_ads(), function( \WP_Post $ad_post ) {

                    return $this->is_ad_type_allowed( ( new \Advanced_Ads_Ad( $ad_post->ID ) )->type );

                } );

                if ( empty( $group_ads ) ) {

                    continue;

                }

                $this->allowed_groups[ ‘group_’ . $group->id ] = $group->name;

            }

    If anyone has any ideas on how I can fix this issue I’d be very grateful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • schmidt25

    (@schmidt25)

    Hi rangeday20,

    I would guess that the problem here is with Advanced Ads and not in your setup. I’ve asked our developers for an answer because I can’t explain or solve this error, and will let you know here as soon as I know more about the problem or need any additional information.

    Best regards,
    Joachim

    schmidt25

    (@schmidt25)

    Hi rangeday20,

    The bug is caused by Advanced Ads and we will fix it as soon as possible.

    Best regards,

    Joachim

    schmidt25

    (@schmidt25)

    Hi rangeday20,

    Thanks for your patience. We could discover the problem’s reason, but we could not replicate the bug by ourselves. Another user reported a similar problem. The last update (Advanced Ads 1.44.0) fortunately fixed that.

    Can you confirm that the issue is gone on your website after updating Advanced Ads?

    Best regards,

    Joachim

    Hi @rangeday20,

    Are there any updates on this issue?

    Best regards,

    Joachim

    Hi,

    I am closing this thread due to inactivity and assume that this problem no longer exists. If it occurs again, I would like to ask you to open a new topic here in the forum.

    Best regards,

    Joachim

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

The topic ‘Strange error’ is closed to new replies.