• Resolved LeRedac

    (@leredac)


    Hello.

    Thank you for your plugin.

    This morning after update y have many error in log :

    PHP Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/www……/wp-content/plugins/advanced-access-manager/application/Core/Config.php on line 65

    My WP
    – WordPress – 5.3.2
    – Advanced Access Manager 6.4.1

    What is wrong please ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter LeRedac

    (@leredac)

    Hi again

    I have fixed the bug on my side but I am not sure that this is the right solution. Everything is working properly now (ostensibly).

    Change line 65 (application/Core/Config.php) :

    if (array_key_exists($option, self::$config))

    To

    if (is_array(self::$config) && array_key_exists($option, self::$config))

    Plugin Author AAM Plugin

    (@vasyltech)

    @leredac,

    It appears that aam_config option in the wp_options database table contains corrupted value. In should have a serialized array of key/value pairs. Instead, it contains something different. My best guess is that is the string.

    You can delete the mentioned option and the error should go away.

    Regards,
    Vasyl

    Thread Starter LeRedac

    (@leredac)

    Hello. Indeed the entries in the multisites was empty. I deleted them and kept only that of the main site which contained a value. The error no longer appears now. Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘After update PHP Warning: array_key_exists()’ is closed to new replies.