Page 1 of 1

permission error and 'not a valid stream resource' ??

Posted: Fri Oct 10, 2008 7:33 am
by cf
Hi,

After updating to CMSMS-1.4.1, im getting the following errors (see below).  I've made sure the tmp, cache and templates_c set to chmod 777 -- any other ideas on how to fix this?  Also, when I clear the cache on the global settings in admin, the errors disappear momentarily, but come back as soon as i refresh the page.  Also someone told me i should try deleting php.cgi from the cgi-bin and delete the htaccess file, but when i went to try that i found out that my cgi-bin folder was empty.  Could the problem have something to do with that?  I'm completely clueless...

Thanks for the help!!
-c

Warning: fopen(/home/gdeluca/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/gdeluca/public_html/lib/classes/class.contentoperations.inc.php on line 514

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

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

Warning: fopen(/home/gdeluca/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/gdeluca/public_html/lib/classes/class.contentoperations.inc.php on line 556

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

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

string(67) "Smarty error: unable to read resource: "module_db_tpl:News;summary""

Re: permission error and 'not a valid stream resource' ??

Posted: Fri Oct 10, 2008 8:01 am
by Dee
It seems the webserver doesn't have read (and write) rights on the file /home/gdeluca/public_html/tmp/cache/contentcache.php
Try deleting the file tmp/cache/contentcache.php or setting looser permissions on it.

Regards,
D

Re: permission error and 'not a valid stream resource' ??

Posted: Mon Nov 10, 2008 5:58 am
by FirstGateDreamer
Dee wrote:.. setting looser permissions on it...
I had the same problem and found this thread via search.

My permissions were set to 644. I set them to 666 and this seems to work.

I really don't know that much (yet) about security though. Will this compromise anything?

Thanks
r.