Title: PHP warnings when creating backup manually
Last modified: February 23, 2018

---

# PHP warnings when creating backup manually

 *  Resolved [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-when-creating-backup-manually/)
 * Hi Prashant,
 * Every time I create a backup manually using the “Create new Database Backup” 
   button, the following PHP warnings pop up in my debug.log file:
 *     ```
       [22-Feb-2018 15:01:03 UTC] PHP Warning:  fopen(/path/to/wp-content/uploads/db-backup/.htaccess): failed to open stream: No such file or directory in /path/to/wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php on line 1667
       [22-Feb-2018 15:01:03 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /path/to/wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php on line 1667
       [22-Feb-2018 15:01:03 UTC] Class ZipArchive
       [22-Feb-2018 15:01:04 UTC] number_of_existing_backups
       [22-Feb-2018 15:01:04 UTC] 1
       [22-Feb-2018 15:01:04 UTC] number_of_backups_from_user
       [22-Feb-2018 15:01:04 UTC] 
       ```
   
 * Could you please look into it? Let me know if you need more details.
 * Thanks in advance!

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

 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-when-creating-backup-manually/#post-10043080)
 * Hi,
 * This is warning and do not affect your website.
 * This is enable for debugging purpose. WP Database Plugin try to find htaccess
   file in backup folder if not able to find then show this warning.
 * I will check and fix this warning in next version.
 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-when-creating-backup-manually/#post-10052537)
 * Hi,
 * I have release new version 4.5.5.
 * With this release,
    Add Setting -Enable/Disable .htaccess File In Storage Directory
   as well as fixed this warning.
 * If you face any problems then let us know.

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

The topic ‘PHP warnings when creating backup manually’ 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/)

## Tags

 * [fopen](https://wordpress.org/support/topic-tag/fopen/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-warnings-when-creating-backup-manually/#post-10052537)
 * Status: resolved