WordPress.org

Forums

WordPress Notification Bar
[resolved] Error in WordPress Multisite with subdomain setting (2 posts)

  1. bffnb
    Member
    Posted 11 months ago #

    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

  2. John Turner
    Member
    Plugin Author

    Posted 11 months ago #

    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

Reply

You must log in to post.

About this Plugin

  • WordPress Notification Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.