• I use WordPress ver 4.9.8 and Cloudflare displays Warning since the latest update (since 4 days).

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/**file name**/www/wp-content/plugins/cloudflare/vendor/cloudflare/cloudflare-plugin-backend/src/Integration/DefaultConfig.php on line 25

    public function getValue($key)
        {
            $value = null;
            if (array_key_exists($key, $this->config)) {     \\line 25
                $value = $this->config[$key];
            }
    
            return $value;
        }
    

    Does it mean $this->config is null ?

    Can I debug modifying the line 25 to

    
    if (is_array($this->config) && array_key_exists($key, $this->config)) {
    

    ?

  • The topic ‘Cloudflare displays Warning since the latest update’ is closed to new replies.