Page 1 of 1

Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:09 am
by devilslayer
Hello,

My website has started to display the following error message:
Warning: fopen(/home/hawley/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 557

Warning: fwrite(): supplied argument is not a valid stream resource in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 558

Warning: fclose(): supplied argument is not a valid stream resource in /home/hawley/public_html/lib/classes/class.contentoperations.inc.php on line 559
Does anybody know why this has happened as the website has been fine until today.

Best Regards

Dave

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:14 am
by cyberman
Have you set right permission for /tmp/cache?

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:22 am
by devilslayer
Hello Cyberman,

The site has been working fine for about six months and this message occured today.

By the way what should the permissions be on this directory.

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:24 am
by devilslayer
Cyberman,

Permissions are currently set at 777.

Best Regards

Dave

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:28 am
by cyberman
Have you tried to clear cache (admin, menu site admin > global settings)?

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 10:46 am
by devilslayer
Hello Cyberman,

That seems to have solved the problem. Many thanks.

Have you any reason why it occured in the first place?


Best Regards

Dave

Re: Error message suddenly occured on website

Posted: Wed Apr 04, 2007 1:22 pm
by cyberman
Don't know really - maybe contentcache.php are online, but not readable. If you clear cache this file will be renewed.