Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Invalid arugments on select posts
Avatar
Ryan Marich
Rookie
sp_UserOfflineSmall Offline
May 19, 2015 - 4:54 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 19, 2015 - 5:25 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ryan Marich
Rookie
sp_UserOfflineSmall Offline
May 19, 2015 - 6:20 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 19, 2015 - 6:53 am

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.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 639
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17342
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10116
Posts: 79581