• Resolved e dev

    (@efishinsea)


    After updating the plugin to v2.7.4.4, all of our menu settings are lost, nothing will save, and I am getting this error constantly.

    array_key_exists() expects parameter 2 to be array, string given in /wp-content/plugins/mobile-menu/vendor/titan-framework/lib/class-titan-framework.php on line 287

    Any ideas? I’ve tried resaving the settings, but nothing I set will save. The page just reloads.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter e dev

    (@efishinsea)

    As an update, I disabled SSL as I saw a mixed content error coming from that with the plugin, and was eventually able to save the general settings again. I had also edited the Titan Library file to make the following adjustment from this:

    
    if ( array_key_exists( $optionName, $this->adminOptions ) ) {
    
    }
    

    to this:

    
    if ( is_array($this->adminOptions) && array_key_exists( $optionName, $this->adminOptions ) ) {
    
    }
    

    everything is saving now and I was able to renable the SSL to allow everything to work properly once again.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @efishinsea,

    Apologize for that. I’m glad it’s sorted and thanks for sharing the solution.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘array_key_exists() expects parameter 2 to be array’ is closed to new replies.