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
Numerous sp-api PHP Warnings
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 22, 2019 - 2:58 pm

I searched but didn't see anyone else reporting this. Thanks in advance for any feedback!

We recently discovered numerous persistent PHP warnings in our server error log file:

[22-Jan-2019 12:34:05 America/Denver] PHP Warning - A non-numeric value encountered - file: /simplepress/sp-api/sp-api-class-spcpost.php - line: 580 - function: saveData

[22-Jan-2019 12:34:05 America/Denver] PHP Warning - A non-numeric value encountered - file: /simplepress/sp-api/sp-api-class-spccache.php - line: 41 - function: add

Not sure exactly how long it's been going on, and don't necessarily notice any impact, other than exponential growth of the error.log files. Notice only seems to periodically appear in the SP Admin -> Toolbox -> Error Log but seems to be constantly written to the server error logs.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Jan 22, 2019 - 9:02 pm

Hi:

Can you let me know which version you are running. I think you're running V6.0.6?

Thanks.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 22, 2019 - 11:49 pm

Simple Press said
...think you're running V6.0.6?

Sorry about that, yes...

SimplePress Version: 6.0.6 Build: 15852

WordPress Version: 5.0.3
Multisite Network, Primary Site (ID 1)

PHP Version: 7.1.26

MySQL Version: 5.7.25
db prefix ***removed by moderator for security reasons***

SP Plugins:

Admin Bar (2.1)
Auto Linking (2.0)
Blog Post Linking (2.1)
Editor TinyMCE Rich Text (4.0)
File Uploader with Plupload (5.0)
Font Resizer (2.0)
Post As (2.0)
Post Ratings (2.0)
Print Topic (2.0)
Private Message System (3.1)
Subscriptions (2.0)
Template Tags and Widgets (2.0)
Uploads Viewer (2.0)
Who's Online (2.0)

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Jan 23, 2019 - 1:51 am

Thanks.  What is the value of the "Flood Control" option under FORUMS->OPTIONS->GLOBAL SETTINGS?

Thanks.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 23, 2019 - 11:57 am

Simple Press said
Thanks.  What is the value of the "Flood Control"... 

Interesting. That field was blank. I have just changed that to 15. Is there a recommended value?Screen-Shot-2019-01-23-at-8.54.44-AM.pngImage Enlarger

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Jan 23, 2019 - 3:05 pm

Hi - the default that is used for new installations is 10.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 23, 2019 - 3:22 pm

Simple Press said
...default that is used for new installations is 10

Thank you, I've changed our value to 10.

Interesting how the field in our settings was empty. Please advise if that could have been causing the errors, or what I might do to troubleshoot further.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Jan 23, 2019 - 3:27 pm

Hi:

That was most likely the cause of the error you were seeing.  You should clear out your error logs and then see if that error continues to show up.

Thanks.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 24, 2019 - 4:50 pm

Simple Press said
That was most likely the cause of the error...

So far so good! Thanks for quickly figuring this one out.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 24, 2019 - 4:52 pm

Simple Press said

db prefix ***removed by moderator for security reasons***

D'oh! Thank you.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600