Title: EntityManager Error Message
Last modified: January 28, 2024

---

# EntityManager Error Message

 *  Resolved [huppbrian](https://wordpress.org/support/users/huppbrian/)
 * (@huppbrian)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/entitymanager-error-message/)
 * I just installed an activated Filter Everything. I have done nothing else yet
   to set it up. Now when I log into my site, I get the following error message 
   as soon as the login page is displayed…
 * Warning: Invalid argument supplied for foreach() in /home/u972194149/domains/
   huppbrian.us/public_html/wp-content/plugins/filter-everything/src/Entities/EntityManager.
   php on line 640
 * If I deactivate the plugin, the error disappears.
 * NOTE – I am using the AIOWPS security plugin with its firewall activated and 
   I have renamed the login page from the standard /wp-admin as a hedge against 
   brute force attacks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fentitymanager-error-message%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [huppbrian](https://wordpress.org/support/users/huppbrian/)
 * (@huppbrian)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/entitymanager-error-message/#post-17378383)
 * Looks like the offending line is in this function…
 *     ```wp-block-code
       public function getOnlyBelongsFilters( $sets )
           {
               $relevantFilters = [];
   
               foreach ( $sets as $set ) {
                   $relevantFilters[] = $this->selectOnlySetFilters( $set['ID'] );
               }
   
               $relevantFilters = flrt_remove_level_array($relevantFilters);
   
               return $this->extractBelongsFilters($relevantFilters);
           }
       ```
   
 * May I suggest adding an if ($sets) before the foreach loop to cover the case 
   where no filters have been configured. I suspect that my issue will go away once
   I configure some filters.
    -  This reply was modified 2 years, 4 months ago by [huppbrian](https://wordpress.org/support/users/huppbrian/).
 *  Plugin Support [fesupportteam](https://wordpress.org/support/users/fesupportteam/)
 * (@fesupportteam)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/entitymanager-error-message/#post-17380759)
 * Hi [@huppbrian](https://wordpress.org/support/users/huppbrian/)
 * Thank you for your interest in the Filter Everything plugin.
 * This issue will be removed with the next update of the plugin. We already added
   a fix to it. Currently, the plugin is fully working so you can set up your filters.
   And then just update to the new version so it’ll gone.
 * Best Regards – Victor

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

The topic ‘EntityManager Error Message’ is closed to new replies.

 * ![](https://ps.w.org/filter-everything/assets/icon-256x256.png?rev=3487105)
 * [Filter Everything — WordPress & WooCommerce Filters](https://wordpress.org/plugins/filter-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-everything/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fesupportteam](https://wordpress.org/support/users/fesupportteam/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/entitymanager-error-message/#post-17380759)
 * Status: resolved