WordPress.org

Support

Support » Plugins and Hacks » WP-DB-Backup » Notice: Undefined index: action in wp-db-backup.php on line 222

Notice: Undefined index: action in wp-db-backup.php on line 222

  • Hi there. I’m a fellow WP dev.
    While performing a standard debug session (WP_DEBUG set to true) in one of the sites I contribute in, I saw the aforementioned notice inside the update-core.php admin page, which is coming from your plugin’s update_notice_action() function.
    The issue goes away by first checking for the existence of $_REQUEST['action'].
    I’m thinking you could do either:

    if( array_key_exists("action", $_REQUEST) ) :
        //do stuff
    :endif;

    Or:

    if( isset($_REQUEST['action']) ) :
        // do stuff
    :endif;

    Hope this helps! 🙂

    https://wordpress.org/plugins/wp-db-backup/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice: Undefined index: action in wp-db-backup.php on line 222’ is closed to new replies.
Skip to toolbar