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
New server error
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Aug 28, 2012 - 3:50 am

Hello, I recently migrated servers and am now getting this error from simplepress in the error log-

file: /simple-press/sp-api/sp-api-globals.php
line: 128
function: ini_set
Warning | ini_set() has been disabled for security reasons

I should mention the server the site was transferred to is using suPHP now. Any suggestions to make this go away?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 28, 2012 - 7:08 am

Well firstly - just for the record - this is not an error. it is - as it clearly states - a warning.

Secondly the reason for the warning is also clearly stated.

And finally all calls to ini_set in SP code follows the same policy as WP core and (most) other plugins - which is to prefix the function call with @ symbol. This informs the php processor to ignore it if it fails and not to issue an error entry (if the function does not exist) OR a Warning entry (if it can not be run). It is remotely possible that internal SP error trapping is causing the entry to be written but I doubt it at the stage that it is called. My first thought would be to look at your server setup.

andy-signature.png
YELLOW
SWORDFISH
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Aug 28, 2012 - 9:03 am

Yeah was a warning, I meant it was in the error log, the site was functioning fine, has been a long night ;)

Anyways, ini_set was disabled on the server. Enabling it took care of the prob. Thanks for the help :)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 28, 2012 - 9:20 am

Enabling it is actually most probably the best solution.

I did a quick search through all of the plugins we use on this site - and we really do not use that many - and was surprised to find quite a few calls to this function and at least half of the plugins that called it failed to prefix with the error suppression symbol. So if you started to run with any of those it would produce a fatal error and stop the site from being operational.

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