Title: Php Warning mkdir(): File exists
Last modified: August 31, 2016

---

# Php Warning mkdir(): File exists

 *  [Bhargav](https://wordpress.org/support/users/bhargavy/)
 * (@bhargavy)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-mkdir-file-exists/)
 * Php Warning
 *     ```
       PHP Error	Count	Location	Call Stack	Component
       Warning	mkdir(): File exists	1	wp-content/plugins/better-wp-security/core/class-itsec-files.php:331	mkdir()
        wp-content/plugins/better-wp-security/core/class-itsec-files.php:331
       ITSEC_Files->get_file_lock()
        wp-content/plugins/better-wp-security/core/modules/backup/class-itsec-backup.php:97
       ITSEC_Backup->do_backup()
        Unknown location
       do_action('init')
        wp-settings.php:392	Plugin: better-wp-security
       ```
   
 * Via Query Monitor
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-mkdir-file-exists/#post-7251311)
 * [@bhargav](https://wordpress.org/support/users/bhargav/)
 * Manually deleting the wp-content/uploads/ithemes-security/backup.lock folder 
   should take care of this Php Warning.
 * Alternatively disable the **Schedule Database Backups** setting in the Database
   Backups section of the iTSec plugin Settings page.
 * dwinden
 *  Thread Starter [Bhargav](https://wordpress.org/support/users/bhargavy/)
 * (@bhargavy)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-mkdir-file-exists/#post-7251524)
 * [@dwinden](https://wordpress.org/support/users/dwinden/)
 * An empty backup.lock is being generated if its deleted and even with Schedule
   Database Backups disabled the error is occuring.
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-mkdir-file-exists/#post-7251526)
 * [@bhargav](https://wordpress.org/support/users/bhargav/)
 * In that case enable the **Disable File Locking** setting in the Global Settings
   section of the iTSec plugin Settings page.
    Clean up any existing backup.lock
   folder and then see whether the PHP warning persists.
 * dwinden

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

The topic ‘Php Warning mkdir(): File exists’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [dwinden](https://wordpress.org/support/users/dwinden/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php-warning-mkdir-file-exists/#post-7251526)
 * Status: not resolved