Warning: fwrite() expects parameter 1 to be resource, boolean given

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 27, 2012   (RSS)

By eduran582 - March 27, 2012

Hi all,

I have two identical sites (one is a backup to the other) and when I run the identical script (with related db changes), I get the following error on one of the sites:
Warning: fwrite() expects parameter 1 to be resource, boolean given


The site it runs on is a "shared hosting" and the one it does not run on is a virtual dedicated server (both through GoDaddy).

Site 1: (the shared hosting one that works) is running: MySQL v5.0.92 (Max Connections: 200) with PHP v5.2.17

Site 2: (virtual dedicated server) is running: MySQL v5.0.95 (Max Connections: 100) PHP v5.3.3

Both sites run the latest version of CMSB. I've looked high and low for a solution on the web but nothing seems to work. I'm guessing, from what I've read, it might be the v5.3.3 of PHP that is causing the problem.

Any help would be appreciated as site #2 is the "production" site and the script is going to be run every day.

TIA,

Eric