• Resolved huppbrian

    (@huppbrian)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter huppbrian

    (@huppbrian)

    Looks like the offending line is in this function…

    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 10 months ago by huppbrian.
    Plugin Support fesupportteam

    (@fesupportteam)

    Hi @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.