WordPress.org

Ready to get started?Download WordPress

Forums

WP-DB-Backup
Notice: Undefined index: action in wp-db-backup.php on line 222 (1 post)

  1. Marventus
    Member
    Posted 3 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic