Title: PHP Warning
Last modified: August 31, 2016

---

# PHP Warning

 *  Resolved [infolotnicze](https://wordpress.org/support/users/infolotnicze/)
 * (@infolotnicze)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/)
 * Hello,
 * I receive those 2 php warnings:
 * >  [15-Mar-2016 08:59:32 UTC] PHP Warning: fwrite() expects parameter 1 to be
   > resource, null given in /home/xxxxxxxx/domains/prywatnosc.winternecie.info/
   > public_html/wp-content/plugins/dreamobjects/lib/dhdo.php on line 87
   >  [15-Mar-
   > 2016 08:59:32 UTC] PHP Warning: fclose() expects parameter 1 to be resource,
   > null given in /home/xxxxxxx/domains/prywatnosc.winternecie.info/public_html/
   > wp-content/plugins/dreamobjects/lib/dhdo.php on line 88
 * [https://wordpress.org/plugins/dreamobjects/](https://wordpress.org/plugins/dreamobjects/)

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

 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172515)
 * What are you doing when you get those warnings?
 *  Thread Starter [infolotnicze](https://wordpress.org/support/users/infolotnicze/)
 * (@infolotnicze)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172526)
 * I think that they pop out when I log in after some time.
 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172530)
 * Those SHOULD only happen if you’re turning the debug logger on or off. I’ll check
   into it, but they’re not mission critical 🙂 It looks like you’re getting that
   when it’s trying to edit the debug log and can’t. Can you check if there’s a 
   file called debug.txt in the main plugin folder?
 *  Thread Starter [infolotnicze](https://wordpress.org/support/users/infolotnicze/)
 * (@infolotnicze)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172549)
 * Yes tere is but it’s empty.
 * Could it be that the site had no visits at all and my login was the first one
   and it triggered the backup proces which coused the warning?
 *  Thread Starter [infolotnicze](https://wordpress.org/support/users/infolotnicze/)
 * (@infolotnicze)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172554)
 * I couldn’t edit the above post so a little update.
 * The same warning is on a site with normal traffic. Looking at the time it looks
   like the warning is made while the backup is done but the status of backup is
   successful.
 * The only thing that recently has changed is that I have moved to php 7, mariaDB
   10 and http/2.
 * Maybe mariaDB is the reason?
 *  [kevmatic33](https://wordpress.org/support/users/kevmatic33/)
 * (@kevmatic33)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172568)
 * I’m getting the same error as well on my site now
 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172574)
 * kevmatic33 – All the time or only when you’re doing certain things? Also are 
   you on PHP 7?
 * infolotnicze – Does it happen more than once or is it only the one time?
 * I’ll have a look. PHP 7 might be why. The fwrite could be confused as to file
   names. I only did a basic test on 7.
 *  Thread Starter [infolotnicze](https://wordpress.org/support/users/infolotnicze/)
 * (@infolotnicze)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172592)
 * It happens more than once – every day.
 *  [ArjanSalomons](https://wordpress.org/support/users/arjansalomons/)
 * (@arjansalomons)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172614)
 * Hi Mika,
 * I’m getting this issue as well, freshly set up the plugin, new Bucket. I’m running
   PHP 5.6.
    Debug.txt is there, but empty.
 *  [ArjanSalomons](https://wordpress.org/support/users/arjansalomons/)
 * (@arjansalomons)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172615)
 * Enabling logging seemed to solve the problem. If you turn logging off again, 
   it breaks again when saving options or, in my case, running an immediate backup.
 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172619)
 * Alright, I’ll see if I can fix that this afternoon… Tracking here – [https://github.com/Ipstenu/dreamobjects/issues/11](https://github.com/Ipstenu/dreamobjects/issues/11)
 *  Plugin Author [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172660)
 * Figured it out. Will push a new version tomorrow at noonish PT.
 *  [ArjanSalomons](https://wordpress.org/support/users/arjansalomons/)
 * (@arjansalomons)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172667)
 * It’s working now, thanks!

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dreamobjects_4297bf.svg)
 * [DreamObjects Backups](https://wordpress.org/plugins/dreamobjects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dreamobjects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dreamobjects/)
 * [Active Topics](https://wordpress.org/support/plugin/dreamobjects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dreamobjects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dreamobjects/reviews/)

 * 13 replies
 * 4 participants
 * Last reply from: [ArjanSalomons](https://wordpress.org/support/users/arjansalomons/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-80/#post-7172667)
 * Status: resolved