Error on the content->pages, please help!!!!

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
renno

Error on the content->pages, please help!!!!

Post by renno »

Hi, the site I've built has uploaded correctly however when I go to admin in order to change some content, the following errors are dislplayed at the top of content->pages:

Warning: fopen(/home/nas04l/s/safesurgerysystems.com/user/htdocs/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/nas04l/s/safesurgerysystems.com/user/htdocs/lib/classes/class.contentoperations.inc.php on line 557

Warning: fwrite(): supplied argument is not a valid stream resource in /home/nas04l/s/safesurgerysystems.com/user/htdocs/lib/classes/class.contentoperations.inc.php on line 558

Warning: fclose(): supplied argument is not a valid stream resource in /home/nas04l/s/safesurgerysystems.com/user/htdocs/lib/classes/class.contentoperations.inc.php on line 559

Could anyone help? Do I have to change permissions to certain files?

Many thanks,

Tom
rangitoto
Forum Members
Forum Members
Posts: 132
Joined: Fri Jun 30, 2006 11:20 am

Re: Error on the content->pages, please help!!!!

Post by rangitoto »

Hi

Are the permissions correct? Are you the owner?? (wwwrun?)

Greez
Rangi
"Mir ist bewusst, dass einige ihr ganzes Leben nix anderes gemacht haben,
als gebückt mit Stock oder Stein etwas in die Erde zu scharren..."
stinhambo

Re: Error on the content->pages, please help!!!!

Post by stinhambo »

I get exactly the same problem. I have set all the correct permissions too...
stinhambo

Re: Error on the content->pages, please help!!!!

Post by stinhambo »

Does anyone have a solution for this?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Error on the content->pages, please help!!!!

Post by Dr.CSS »

Have you checked the folder permissions with your FTP client?...

The permissions it may be talking about have to do with server and not in the admin area, as in group permissions...
b0n3m4n

Re: Error on the content->pages, please help!!!!

Post by b0n3m4n »

One thing that worked for me in this rather typical case:

Download FileZilla 3 beta (2 does not have the necessary feature)
Connect to your website FTP with Filezilla, right-click the folder that contains cmsms -> change attributes
Set attributes to 755, activate "include subfolders" and at the bottom select "only folders". Start.
Do it again, this time set attributes to 644, activate "include subfolders", at the bottom select "only files". Start.
Make sure you reset the permissions of certain files and folders as mentioned in the installation guide. (should be config.php to 444, modules, uploads, tmp/cache and tmp/templates_c to 777) Only change the folders, not the subfolders.

Now all files and folders should be publicly readable.

WARNING: I am fairly new at all this an would need confirmation that this course of action is really safe. Can anyone tell me if that opens a security hole?

If that still does not work try to set ownership of your whole cmsms installation (all files and folders) to your user name. If you have access to the server itself, the chown command would be the way to go. If not, maybe your provider has a tool in your website admin section. If that is not the case, contact your provider and ask them to do the change for you.

Again, this course of action worked for me, but I still need confirmation on the security issue.
SeanL

Re: Error on the content->pages, please help!!!!

Post by SeanL »

We had the same problem as this, and it transpired we deactivated some of our content before it started happening.

The issue was it was happening in the Admin pages as well so we couldn't reactivate it.  Deleting the deactivate content made it work quite happily again.

I dare say if this was a live site as opposed to a site in construction we would have been quite upset, so not really a fix but I hope it helps!
Locked

Return to “Layout and Design (CSS & HTML)”