PHP Warning: ini_set()
-
Hello gVectors,
We added some measures to harden our server security. Among these, we disabled ini_set (PHP 7.4). This seems to be the only measure that resulted in error logging. Our WP error_log began filling with these messages:
[23-Jun-2021 15:46:37 UTC] PHP Warning: ini_set() has been disabled for security reasons in ../public_html/wp-content/plugins/wpforo/wpforo.php on line 385
[23-Jun-2021 15:46:37 UTC] PHP Warning: ini_set() has been disabled for security reasons in ../public_html/wp-includes/functions.php on line 7005
and
[23-Jun-2021 15:51:04 UTC] PHP Warning: ini_set() has been disabled for security reasons in ../public_html/wp-content/plugins/wpforo/wpf-includes/functions.php on line 742Simultaneously, we noticed a spinning “working” image in the Leave a reply editor box under forum posts viewed by logged-in users.
As a temporary measure, we re-enabled ini_set and the error logging ceased. However the spinning image persists in the Leave a reply box. I posted a test reply (ignoring the spinning wheel in the editor box), which worked. I tested this in Mozilla/Linux, Chrome/Win10 and Chrome/iPad. Consistent behavior across all three.
A Linux tech at our ISP suggested that if we know what ini_set is trying to set, we could add the configuration to .user.ini. Can you suggest a workaround we might try to allow us to disable ini_set without flooding the error_log with PHP Warnings? Also, what determines when to display the spinning image in the reply editor? If I know what triggers it, such as an api call to Akismet, I can try to figure out what is being blocked or check to see if another PHP Function required by wpforo has been disabled.
Thank you,
— DaveThe page I need help with: [log in to see the link]
- The topic ‘PHP Warning: ini_set()’ is closed to new replies.