Support Forum
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?
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.
YELLOW
SWORDFISH
|
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.
YELLOW
SWORDFISH
|
1 Guest(s)