Title: Strange error
Last modified: May 19, 2023

---

# Strange error

 *  Resolved [rangeday20](https://wordpress.org/support/users/rangeday20/)
 * (@rangeday20)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/strange-error-40/)
 * 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](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [3 years ago](https://wordpress.org/support/topic/strange-error-40/#post-16755662)
 * 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](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [3 years ago](https://wordpress.org/support/topic/strange-error-40/#post-16764217)
 * Hi rangeday20,
 * The bug is caused by Advanced Ads and we will fix it as soon as possible.
 * Best regards,
 * Joachim
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [3 years ago](https://wordpress.org/support/topic/strange-error-40/#post-16800351)
 * 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
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/strange-error-40/#post-16833211)
 * Hi [@rangeday20](https://wordpress.org/support/users/rangeday20/),
 * Are there any updates on this issue?
 * Best regards,
 * Joachim
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/strange-error-40/#post-16847973)
 * 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.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/strange-error-40/#post-16847973)
 * Status: resolved