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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
cf

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

Post 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""
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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
User avatar
FirstGateDreamer
Forum Members
Forum Members
Posts: 15
Joined: Mon Nov 10, 2008 5:42 am

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

Post 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.
Locked

Return to “CMSMS Core”