Title: Getting PHP warning error
Last modified: August 22, 2016

---

# Getting PHP warning error

 *  Resolved [jugaadoo](https://wordpress.org/support/users/jugaadoo/)
 * (@jugaadoo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-php-warning-error/)
 * I am getting the following errors
 * [Wed Oct 08 23:12:23 2014] [error] [client 178.**.***.**] PHP Warning: fwrite()
   expects parameter 1 to be resource, boolean given in
 * /home/ju****/public_html/ap****.com/wp-content/plugins/bulletproof-security/includes/
   db-security.php on line 143
    [Wed Oct 08 23:12:23 2014] [error] [client 178.62.225.88]
   PHP Warning: fopen(/home/ju****/public_html/ap****.com/wp-content/bps-backup/
   logs/db_backup_log.txt): failed
 * to open stream: Permission denied in /home/ju****/public_html/ap****.com/wp-content/
   plugins/bulletproof-security/includes/db-security.php on line 94
    [Wed Oct 08
   23:12:23 2014] [error] [client 178.62.225.88] PHP Warning: fclose() expects parameter
   1 to be resource, boolean given in
 * /home/ju****/public_html/ap****.com/wp-content/plugins/bulletproof-security/includes/
   db-security.php on line 144
 * [https://wordpress.org/plugins/bulletproof-security/](https://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-php-warning-error/#post-5375658)
 * [http://forum.ait-pro.com/forums/topic/cron-error-with-new-db-backup-feature/](http://forum.ait-pro.com/forums/topic/cron-error-with-new-db-backup-feature/)
   
   If you have a DSO Host server type:
 * > These errors are occurring because the BPS DB Backup folder does not exist 
   > or is not writable. The BPS Backup folder should be created automatically here:/
   > wp-content/bps-backup/backups_xxxxxxxxxxxxxxx by BPS during the upgrade or 
   > on new installations of BPS, but if the /bps-backup/ folder does not have the
   > correct Ownership settings to allow for this folder to be automatically created
   > then you will not see this folder. You can create the DB Backup folder manually
   > and then save the folder path and URL path information on the DB Backup page
   > or you can allow the backups folder to be created automatically by figuring
   > out what DSO Ownership settings you need.
 * If you have a CGI Host server type and there is a permissions problem for the/
   bps-backup/ folder then you would change the /bps-backup/ folder permissions 
   to 755 or 705.
 * If something generally just went wrong with the automated DB Backup folder creation
   then you can either manually create the /wp-content/bps-backup/backups_xxxxxxxxxxxxxxx
   folder and manually add your db backup path settings on the BPS DB Backup page…
 * …or to allow BPS to automatically create the DB Backups folder again and add 
   the db backup path options settings again – Use phpMyAdmin or another DB editor
   and delete this BPS database option: bulletproof_security_options_db_backup and
   delete this folder if it exists: /wp-content/bps-backup/backups_xxxxxxxxxxxxxxx
   folder.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-php-warning-error/#post-5375771)
 * Is the issue/problem fixed? Can this thread be resolved? If so, please resolve
   this thread. If not, please post any additional information.
 * Thread Start Date: 10-10-2014 to 10-11-2014
    Current Date: 10-13-2014
 *  Thread Starter [jugaadoo](https://wordpress.org/support/users/jugaadoo/)
 * (@jugaadoo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-php-warning-error/#post-5375780)
 * Yes, Thanks for the support

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

The topic ‘Getting PHP warning error’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [jugaadoo](https://wordpress.org/support/users/jugaadoo/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/getting-php-warning-error/#post-5375780)
 * Status: resolved