• RezaY

    (@mohammad983)


    Hi
    I get this log sometimes from your plugin.
    every thing is up to date.
    WordPress and the plugin.

    PHP Notice: Trying to access array offset on value of type bool in /wp-content/plugins/wp-hide-security-enhancer/include/admin-interface.class.php on line 284

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter RezaY

    (@mohammad983)

    By the way, I get this error too. But I do not know. Does it related to the plugin or not!

    [30-Nov-2020 19:11:03 UTC] PHP Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/class-simplepie.php on line 2620

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    Is the notice triggering in a specific interface tab? Any specific actions to follow to replicate or is just random?

    The second message (warning) does not appear related to the plugin.

    Thanks

    Thread Starter RezaY

    (@mohammad983)

    it’s random and rarely.

    It appears in Generate/HTML – Remove Shortlink Meta
    Because there is no help for Shortlink.

    This is a PHP 7.3 warning notice that, in previous version, if it is a bool and you try to get something with undefined index, nothing will happen.

    It encourages a better programming approach rather than leave the job to the compiler.

    So the suggested checking is something like:

    
    //...
    
    if ( isset( $module_setting['help'] ) ) {}
    
    //...
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice’ is closed to new replies.