Support » Plugin: Solid Security – Password, Two Factor Authentication, and Brute Force Protection » Warnings on settings changes after update to 4.6.2

  • After updating to ITS 4.6.2 I was using ITS to re-enable file editor for a CSS change and got about 60 or so instances of this warning

    Warning: Invalid argument supplied for foreach() in /home/pockway/public_html/wp-content/plugins/better-wp-security/core/class-itsec-files.php on line 1281

    Peace

    DM

    https://wordpress.org/plugins/better-wp-security/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    Thread Starter nolaflash

    (@nolaflashcom)

    Thanks for update!

    You’re welcome.

    As this issue is fixed in iTSec plugin 4.6.3 or higher please mark this topic as “Resolved”.

    dwinden

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warnings on settings changes after update to 4.6.2’ is closed to new replies.