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
After Update, getting php error
Avatar
TS Admin
Member
sp_UserOfflineSmall Offline
Feb 21, 2017 - 8:02 pm

See attached screenshot:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in/wp-content/plugins/simple-press/forum/content/classes/sp-topic-view-class.php on line 304

I only see this error as a regular user (admins do not see it). And, it only shows up in a topic view.

Any ideas? Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 21, 2017 - 9:38 pm

update from what version to what???

try going to forum - toolbox - housekeeping and cleaning the new posts list...

Avatar
TS Admin
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 10:02 am

I tried cleaning the new posts list and still have the same error.

I upgraded to Version 5.7.3 of Simple:Press.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 11:03 am

The important question really was from what version! But - no matter.

As your users log in and use the forum then this notice should disappear. It should really only get triggered once for each user. And it is harmless. On top of this an update due very soon will add some extra code to avoid this.

The upgrade process should have cleared the offending data but we have seen a small handful of users for which this did not happen and we are unsure why some and not everyone. In your case we really want the housekeeping tool to effect all users bit, in fact that is not so easy although we do have a task to do this.

If you are familiar with getting into the database then I can tell you which column in which table needs to be emptied. If not then I would seriously suggest you wait.

The only thing that bothers me is the suggestion from what you say that this is being displayed on the screen. If this is the case then you should contact your hosting support immediately and ask them to turn off error messages being displayed. They should NEVER be allowed to display and hosting companies should always set up accounts with this turned off. Very bad practice.

andy-signature.png
YELLOW
SWORDFISH
Avatar
TS Admin
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 1:36 pm

Thanks for the extra information. I will let you know if the next updates solves this. I will also check to see about the error messages being suppressed at the hosting level. In the past, I have not seen php errors in the Simple:Press plugin. That is why I wanted to post it here in case it was something unknown.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 4:29 pm

it is very important not to show them, They often will contain a full path to your code which is not good to advertise.

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: 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