Support Forum

Invalid arugments on select posts

RM Ryan Marich
Ryan Marich
Member

Greeting,

I am assiting a friend with his site and members are starting to see this on select pages: Warning: Invalid argument supplied for foreach() in /problem-with-post-edit-buttonome2/militia/public_html/wp-content/plugins/simple-press/sp-api/sp-api-class-user.php on line 113

It is not effecting the forums in any way users can still see the posts without issue. 

WordPress 4.2.2

Simple:Press 5.5.6

Theme – Game Addict

thank you

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

ALL users? Are you sure it is not just Admins and maybe moderators?

RM Ryan Marich
Ryan Marich
Member

after checking, yes only admin and mods are seeing this.

YS Yellow Swordfish
Yellow Swordfish
Member

Get each admin and moderator to go to the forum admin > admin > Your Admin Options – set their preferences and then update the panel. Sounds to me like the defaults may not have been set up properly so doing the above should flush them into action.

However – there should NEVER be notices, warnings or errors being printed to the display of a public website. It is very bad form and does provide valuable information to would be hackers in the form of the path to your server. You should set up the correct level of error reporting in the php ini file and also make sure that the WP_DEBUG directive in the wp-config.php file is set to false.