I’m getting the warning for the same line. It is bringing the dashboard down to a crawl so I deactivated iThemes Security. I tried re-installing the plugin and I still have the problem. The warning shows on activation and deactivation and shows at least 60 times too.
I ran the update on another site and it seems to be okay but I will check error_log.
I just tried deactivating and then deleting the plugin and its data. And reinstalled the plugin and I am not getting the PHP Warning. But I now have to re-set up what I had for settings before.
iTSec 4.6.2 introduced a bug in the code of the write_wpconfig() function in the file better-wp-security/core/class-itsec-files.php
The ITSEC_Files class write_wpconfig() function is used by several iTSec plugin features …
class ITSEC_Files
do_activate() –> save_wpconfig() –> write_wpconfig()
do_deactivate() –> save_wpconfig() –> write_wpconfig()
__construct() –> add_action( ‘admin_init’, array( $this, ‘admin_init‘ ) ); –> save_wpconfig() –> write_wpconfig()
The save_wpconfig() function (which calls write_wpconfig()) is used by the following modules:
– content-directory
– database-prefix
– salts
Changing the settings of these modules will generate the same warning messages.
dwinden
Thanks, dwinden. Hopefully, they will come up with a fix soon.
Fixed in iTSec plugin 4.6.3
dwinden
You’re welcome.
As this issue is fixed in iTSec plugin 4.6.3 or higher please mark this topic as “Resolved”.
dwinden