WordPress.org

Forums

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

  1. Marventus
    Member
    Posted 1 year 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/

  2. aradams
    Member
    Posted 8 months ago #

    I noticed the same thing. Apparently the plugin author fixed this, but the WP plugin repo isn't showing the right version. You can grab the fixed file at the github repo:

    https://github.com/matzko/wp-db-backup/blob/master/wp-db-backup.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-DB-Backup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic