Page 1 of 1

Why the errors? - their back

Posted: Thu May 15, 2008 10:42 am
by herbshirt
I haven't been web designing for a while but a client has just emailed me to notify me of some errors on his home page (also in admin). The site is running: 1.2.3 "Black Rock" http://www.simonportus.com.au/

This was found in admin and on the home page:

Warning: fopen(/home/simpor68/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/simpor68/public_html/lib/classes/class.contentoperations.inc.php on line 549
Warning: fwrite(): supplied argument is not a valid stream resource in /home/simpor68/public_html/lib/classes/class.contentoperations.inc.php on line 550
Warning: fclose(): supplied argument is not a valid stream resource in /home/simpor68/public_html/lib/classes/class.contentoperations.inc.php on line 551

I notice there's a new release. Would that be the cause? If so, how come another site running the same version wasn't affected? As long as I have site running cms ms will this be an ongoing concern?

(I'll go upgrade now - a scary task)

Thanks,
Herb.

Re: Why the errors?

Posted: Thu May 15, 2008 2:22 pm
by calguy1000
it's because the permissions on your tmp directory got closed down, they should be 777

Re: Why the errors?

Posted: Thu May 15, 2008 10:31 pm
by herbshirt
Thanks Calguy,

I changed the permissions on tmp folder to 777 - same errors.

So I tried 'include change to subfolders'  - same errors. Is there a file I need to re-upload?

Re: Why the errors?

Posted: Thu May 15, 2008 11:08 pm
by Nullig
At the risk of asking the obvious, have you tried clearing the cache in Admin?

Nullig

Re: Why the errors?

Posted: Thu May 15, 2008 11:48 pm
by herbshirt
Thanks Nullig.

It wasn't obvious to me so thanks. Just learnt another one.

Re: Why the errors? - their back

Posted: Mon May 19, 2008 9:54 am
by herbshirt
The errors mentioned before came back.

I cleared cache... gone again.

Re: Why the errors? - their back

Posted: Mon May 19, 2008 3:33 pm
by Nullig
When it becomes problematic, like your site seems to be, I usually put a cron job in to clear it every day at midnight.

Code: Select all


rm -rf /path/to/your/tmp/cache/* | rm -rf /path/to/your/tmp/templates_c/*

Nullig