Would someone please explain this Site Admin issue

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Would someone please explain this Site Admin issue

Post by jasnick »

A client told me he suddenly cannot upload an image using Image Manager.. I tried myself and found I too got a message: File could not be uploaded. This could be a permissions or Safe mode problem?

I managed to get it uploaded via cPanel and then I noticed that File permissions for similar files were not all the same. Some were 0644 and some were 0664.

I went to Site Admin/System Information/Server Information and found the following:
Check database access levels (server_db_grants) Caution could not find a suitable "grant all" permission. this may mean you could have problems installing or removing modules. or even adding and deleting items, including pages

Is this relevant? If so, how do I check? I have never in all the sites I have done come across having to alter permissions long after the site has been operational.

Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Would someone please explain this Site Admin issue

Post by velden »

I think you should have a look at the FOLDER permissions first.

Then, there's the 'File Creation Mask (umask)' option in Site Admin » Global Settings -> Advanced Setup (tab). It has a link to more info:
http://en.wikipedia.org/wiki/Umask

You could inform with you hosting provider. Maybe there is a problem with their server's temp folder (full?) preventing you from uploading files.

Probably there are other possible causes I forget.

I don't believe the grant all permission causes this issue as this is NOT a database problem but a file system problem.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Would someone please explain this Site Admin issue

Post by jasnick »

Thanks Velden - I am inclined to agree. I thought I would check out the CMSMS first then check with the hosting company.

File Creation Mask (umask):022
Then
Owner: [xxxxxx]
Permissions:
Owner: Read,Write
Group: Read
Other: Read

Does that look right? If Group means the site editor, shouldn't that include Write as well as Read?

Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Would someone please explain this Site Admin issue

Post by velden »

Well, I usually set the uploads/images directory to 777 if things don't work.

I think in some hosting configurations you don't have another choice. But I may be wrong.

Same applies then for the caching directories and possibly the modules directory if you want to install/upgrade modules from within cmsms.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: Would someone please explain this Site Admin issue

Post by jasnick »

Thanks Velden - I'll experiment. :)
Post Reply

Return to “The Lounge”