Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Warnings.
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Oct 12, 2016 - 11:26 pm

 i was wondering if you could tell me what is causing this error? it doesnt show it for the admin account but once you login to any other account you get these errors at the top of forum.

Warning: Illegal string offset 'topics' in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Warning: in_array() expects parameter 2 to be array, string given in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Warning: Illegal string offset 'topics' in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Warning: in_array() expects parameter 2 to be array, string given in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Warning: Illegal string offset 'topics' in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Warning: in_array() expects parameter 2 to be array, string given in /home/cyanide/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php on line 337

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 13, 2016 - 3:37 am

There are several parts to this answer..

The first to note is that these are not errors they are warnings. In that respect they cause no processing issues and things run properly.

Next - I can only assume unless you tell me otherwise,  that you used the forum toolbox housekeeping to reset users new posts as we can find no other way to replicate the warnings. If this is the case then they should go away as your users log in and use the forum. And we do have a fix for the toolbox usage ready.

Most importantly however, is that no website should run with notices/warnings/errors being displayed to the screen. It is most unwise and, as a rule and principle, hosts should turn this off. So - unless you have the WP_DEBUG directive turned on in your wp-config.php file we strongly recommend that you talk to your host and have error display turned off as it should be.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Oct 13, 2016 - 2:27 pm

nope i didnt use the toolbox and my debug was off but i just turned off site wide php errors and that worked.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 13, 2016 - 3:57 pm

We are just not sure how you would get that notice. It signifies a variable not set up properly. 

Bit harmless since not initialized is same as empty so it works perfectly except for the notice. 

Only methos we have seen so far for misinitialing the data was the housekeeping button - which is fixed for next version 

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620