• Resolved Ben Meredith

    (@benmeredithgmailcom)


    Hey, I am trying to help a user of my plugin (Better Click To Tweet)to make it play nice with your plugin, and when I went to install WP-NoExternalLinks on my dev server, it returns these warnings/errors on the settings page (right at the top):

    Notice: Undefined index: submit in /srv/www/wordpress-default/wp-content/plugins/wp-noexternallinks/wp-noexternallinks-options.php on line 212
    
    Notice: Undefined index: action in /srv/www/wordpress-default/wp-content/plugins/wp-noexternallinks/wp-noexternallinks-options.php on line 214

    And then this just above the first three blue links:

    Notice: Undefined index: action in /srv/www/wordpress-default/wp-content/plugins/wp-noexternallinks/wp-noexternallinks-options.php on line 84

    Just thought I’d give you a heads up. It seems to be working well enough (I can’t replicate the error the user is getting) but those debug warnings were cause for concern, so I thought I’d reach out!

    Have a good one!

    https://wordpress.org/plugins/wp-noexternallinks/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi. Notices should be turned off in production environment, so it does not matter. Thanks for concern anyway!

    Thread Starter Ben Meredith

    (@benmeredithgmailcom)

    Well sure, the notices are typically turned off, but that doesn’t change the fact that you’ve got those undefined indexes.

    Why wouldn’t you want to properly define indexes so that folks who are trying to track down errors with your (or another) plugin aren’t tripped up by these notices?

    Just my thoughts. Have a great day.

    Ben

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

The topic ‘WP_DEBUG throwing some errors’ is closed to new replies.