Support Forum

Just installed Simple:Press 5 and receiving "Warning: Invalid argument…" error message after creating a new forum.

EF ENJOY THE FLO™
ENJOY THE FLO™
Member

Hello!  I just purchased and installed Simple:Press 5 today.  I am getting the following error message after creating a new forum:  “Warning: Invalid argument supplied for foreach() in /problem-with-post-edit-buttonome/enjoyt8/public_html/wp-content/plugins/simple-press/sp-api/sp-api-auths.php on line 71.”

Please visit my website to view error:  http://enjoytheflo.com/forum/

Has anybody else seen this error?  Any and all help is much appreciated!

Thank you!

 

//

13 Answers

New Answer

MP Mr Papa
Mr Papa
Member

This was a fresh install? or upgrade?

can you try going to forum – toolbox – housekeeping and try resetting the auths cache…

EF ENJOY THE FLO™
ENJOY THE FLO™
Member

Hello!  I did the following: forum – toolbox – housekeeping and reset the auths cache

I am still receiving the message:

Warning: Invalid argument supplied for foreach() in /problem-with-post-edit-buttonome/enjoyt8/public_html/wp-content/plugins/simple-press/sp-api/sp-api-auths.php on line 71″

This is a fresh install.  I have the MayaShop (themeforest.net) theme installed on my website (http://enjoytheflo.com/forum/).  Could this be causing the error?

Thanks!

 

//

MP Mr Papa
Mr Papa
Member

wouldnt think so… it saying you dont have any permissions/auths… which does not make much sense…

have you  created at least one group (not usergroup) and one forum on forum – forums – manage groups and forums??  I dont see any on your site, but that could just be that you dont have them visible to guests…

EF ENJOY THE FLO™
ENJOY THE FLO™
Member

Yes, I just created two groups with forums:

General Discussion -> Test

Surfing -> Test #2

I set the permissions to moderator for all users. 

The Surfing group only shows and I get a 404 error when selecting the Test# 2 forum. 

I only see the error message (“Warning: Invalid argument supplied for foreach() in /problem-with-post-edit-buttonome/enjoyt8/public_html/wp-content/plugins/simple-press/sp-api/sp-api-auths.php on line 71″) when I am logged in as admin.

 

Thanks!

 

//

MP Mr Papa
Mr Papa
Member

Have you assigned any user groups and permission sets to this forum? Saw the note about moderators but wasn’t clear why you did.

Btw this is a warning not an error.

Can you go to forum – permissions – reset permissions and resetting?

On forum – integration – page and Permalink, try updating the permalink for the 404.

No caching plugins, right?

MP Mr Papa
Mr Papa
Member

I understood the issue…  just not why you are seeing it…

for any of those forums, if you click ‘view forum permissions’ what is shown?

can you look into your db?  using phpmyadmin or whatever you host gives you as db tool…  and see how many rows you have in the sfauths table?

EF ENJOY THE FLO™
ENJOY THE FLO™
Member
When selecting Forum & Permissions the following warning messages appear on top aside from the other previous mentioned:

Warning – There are no usergroups with members that have permissions on forum: test This forum may only be visible to SP admins

Warning – There are no usergroups with members that have permissions on forum: Test #2 This forum may only be visible to SP admins

 

The sfauths table is showing 8 rows (View last screenshot: http://enjoytheflo.com/Simple_Press_Screenshots.htm).

Thanks!

 

//

MP Mr Papa
Mr Papa
Member

no, thats the structure of the table… need to browse the table and see how many rows of data…

those warnings seem to indicate what I was talking about…  no usergroups and permssions are assigned to the forums…

but think you clicked on the wrong button…  on forum – forums – manage groups and forums, the 3rd screenshot from post #8…  next to each forum are three buttons…  one of them is ‘view forum permissions’ (the other two are edit and delete)… it will just open a short section below…

just to be sure you understand how permissions work:  http://codex.simple-press.com/codex/getting-started/controlling-access/

MP Mr Papa
Mr Papa
Member

please upgrade to version 5.2.5… then go to forum – permissions – reset permissions and do a permission reset…  or you could uninstall and reinstall…

EF ENJOY THE FLO™
ENJOY THE FLO™
Member

Hello!  I upgraded to version 5.2.5 and the issue was resolved.

Thank you so much for your help and great support!

 

//