Title: Undefined variable $database_file
Last modified: February 26, 2023

---

# Undefined variable $database_file

 *  Resolved [treibstoff](https://wordpress.org/support/users/treibstoff/)
 * (@treibstoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-database_file/)
 * Hello,
   Creating a new database Backup I’ll get the warning:PHP Warning: Undefined
   variable $database_file in /data/web/xxxxx/wp-content/plugins/wp-database-backup/
   includes/admin/class-wpdb-admin.php on line 1634andPHP Warning: Undefined variable
   $filename in /data/web/xxxxxx/hubi/wp-content/plugins/wp-database-backup/includes/
   admin/Destination/FTP/preflight.php on line 29Creating a Full BackupI’ll get 
   the message.Delete old Backup: (but there is no old Backup)and the same as above
   1st one.But both Data Backup are well done.Any Solution??

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

 *  Plugin Author [Backup For WP](https://wordpress.org/support/users/databasebackup/)
 * (@databasebackup)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-database_file/#post-16512631)
 * Hi, Sorry for the inconvenience. For this, I’ve raised the GitHub ticket in our
   repository. We will fix this and get back to you with an update once it gets 
   fixed.
 * Here is the reference GitHub link to track the updates: [https://github.com/ahmedkaludi/wp-database-backup/issues/33](https://github.com/ahmedkaludi/wp-database-backup/issues/33)
 *  Thread Starter [treibstoff](https://wordpress.org/support/users/treibstoff/)
 * (@treibstoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-database_file/#post-16514516)
 * good to see you’re working on it.
   thanx & cheers
 *  Plugin Author [Backup For WP](https://wordpress.org/support/users/databasebackup/)
 * (@databasebackup)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-database_file/#post-16518263)
 * You’re welocome. Once it gets fixed then we will get back to you with an update.

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

The topic ‘Undefined variable $database_file’ is closed to new replies.

 * ![](https://ps.w.org/wp-database-backup/assets/icon-256x256.png?rev=2838048)
 * [WP Database Backup - Unlimited Database & Files Backup by Backup for WP](https://wordpress.org/plugins/wp-database-backup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-database-backup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-database-backup/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-database-backup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-database-backup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-database-backup/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Backup For WP](https://wordpress.org/support/users/databasebackup/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-database_file/#post-16518263)
 * Status: resolved