CodeIgniter Forums
Error with the Codeigniter/Commom.php file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Error with the Codeigniter/Commom.php file (/thread-7211.html)



Error with the Codeigniter/Commom.php file - El Forum - 03-29-2008

[eluser]Matt Crowson[/eluser]
I've been getting this error on all of my pages. After the error, my content appears in good condition lower on the page.

Quote:A PHP Error was encountered

Severity: Warning

Message: fclose(): supplied argument is not a valid stream resource

Filename: codeigniter/Common.php

Line Number: 54

I've replaced the file, looked at it and can find nothing that would give me the error. With that I still get the error and have found no reference to this error anywhere else online. Any thoughts?

Matt Crowson


Error with the Codeigniter/Commom.php file - El Forum - 03-29-2008

[eluser]wiredesignz[/eluser]
Check your config.php log settings and your log directory permissions, is_really_writable() is used by CI logging. Also read the comment in Common.php line 35


Error with the Codeigniter/Commom.php file - El Forum - 03-29-2008

[eluser]Matt Crowson[/eluser]
I am on a windows server with GoDaddy so that very well could be the problem. When I run the site locally there are no issues with it. I'm not sure if I can get the server changed from Windows to Linux so is there a fix I can do with CI?