Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
BUG found: php warning
Avatar
Blaise
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Nov 30, 2016 - 4:57 am
sp_QuotePost Quote

Hi,

I am getting the following PHP Warning:

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

 

Line 337 is:

if (in_array($topic, $spThisUser->newposts['topics']))

 

It seems that under some circumstances $spThisUser->newposts['topics'] is considered a string.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 30, 2016 - 7:26 am
sp_QuotePost Quote

It's not really anything serious - just a nuisance. And it is fixed in the forthcoming update due to be released with the next version of WordPress.

andy-signature.png
YELLOW
SWORDFISH
Avatar
MattV
Guest
Guests
Dec 2, 2016 - 4:31 pm
sp_QuotePost Quote

Is there a work around for it?   Have several users getting it and freaking out lol...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 2, 2016 - 4:38 pm
sp_QuotePost Quote

its an involved fix for a nuisance warning... and will be in the next version which will release when wp 4.7 is released - tentatively scheduled for next week (but no firm confirmation from wp devs yet)...

in the meantime, you should really turn off error logging (errors, warnings, and notices) on a production site... quite bad practice to be showing those...

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626