Page 1 of 1

Would someone please explain this Site Admin issue

Posted: Fri Jul 26, 2013 3:32 am
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

Re: Would someone please explain this Site Admin issue

Posted: Fri Jul 26, 2013 8:42 am
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.

Re: Would someone please explain this Site Admin issue

Posted: Fri Jul 26, 2013 8:56 am
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

Re: Would someone please explain this Site Admin issue

Posted: Fri Jul 26, 2013 9:58 am
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.

Re: Would someone please explain this Site Admin issue

Posted: Fri Jul 26, 2013 10:36 am
by jasnick
Thanks Velden - I'll experiment. :)