• Resolved bffnb

    (@bffnb)


    Hi!

    I turned on my WP Debug im my wp-config and get 2 errors regarding your plugin.

    The errors:

    Notice: Undefined index: page in /home/miguelme/public_html/wp-content/plugins/wordpress-notification-bar/inc/class-plugin.php on line 126

    Notice: Undefined index: page in /home/miguelme/public_html/wp-content/plugins/wordpress-notification-bar/inc/class-plugin.php on line 144

    To remove the errors i changed line 126 from:

    if((is_admin_bar_showing() && $_GET['page'] === 'seed_wnb')){

    to:

    if((is_admin_bar_showing() && isset($_GET['page']) === 'seed_wnb')){

    AND LINE 144 from:

    if($_GET['page'] === 'seed_wnb' && $options['bg_color']){

    to:

    if(isset($_GET['page']) === 'seed_wnb' && $options['bg_color']){

    CAN YOU TELL ME IF THIS IS OK????
    The errors are gone…

    Thx

Viewing 1 replies (of 1 total)
  • Plugin Author John Turner

    (@johnnytee)

    It would actually be:

    Your:
    isset($_GET[‘page’]) === ‘seed_wnb’

    Correct:

    (isset($_GET[‘page’]) && $_GET[‘page’] === ‘seed_wnb’)

    I’ll push a fix for this!

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Error in WordPress Multisite with subdomain setting’ is closed to new replies.