Help! Urgent permissions problem
Permalink
Hi, I hope someone can help.
I was trying to upload replacement files for my header slider and got this error "Fatal error: Call to a member function submit() on a non-object in /var/www/vhosts/sitename.co.uk/httpdocs/concrete/single_pages/dashboard/system/optimization/clear_cache.php on line 8".
The file uploads but errors are all over the page. I can't clear the cache either (error below) and the server is not in php safe mode.
The /file directory had permissions set to 751 I've since changed them to 777 with no improvement (for clarity and in case I've not done this right – using Fetch FTP, select /files directory, Click 'Get Info', change to 777, hit okay - is that right?).
Any help very much appreciated as site looks terrible, client not happy...
Clear cache error – Fatal error: Call to a member function submit() on a non-object in /var/www/vhosts/recycle-scotland.co.uk/httpdocs/concrete/single_pages/dashboard/system/optimization/clear_cache.php on line 8
I was trying to upload replacement files for my header slider and got this error "Fatal error: Call to a member function submit() on a non-object in /var/www/vhosts/sitename.co.uk/httpdocs/concrete/single_pages/dashboard/system/optimization/clear_cache.php on line 8".
The file uploads but errors are all over the page. I can't clear the cache either (error below) and the server is not in php safe mode.
The /file directory had permissions set to 751 I've since changed them to 777 with no improvement (for clarity and in case I've not done this right – using Fetch FTP, select /files directory, Click 'Get Info', change to 777, hit okay - is that right?).
Any help very much appreciated as site looks terrible, client not happy...
Clear cache error – Fatal error: Call to a member function submit() on a non-object in /var/www/vhosts/recycle-scotland.co.uk/httpdocs/concrete/single_pages/dashboard/system/optimization/clear_cache.php on line 8
Thanks cmerrit, that's helped a lot. Errors are no longer showing and I have been able to empty the cache. I'm still getting this error though when trying to upload a replacement image:
Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server.
I set my files/ directory set to 777 but this doesn't seem to change the permissions of the directories inside it (for example thumbnails/ is still set to 755). When people usually change the permissions of a directory like /files do they just edit that single directory name from their FTP program or do they do something different?
Thanks again for your help.
Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server.
I set my files/ directory set to 777 but this doesn't seem to change the permissions of the directories inside it (for example thumbnails/ is still set to 755). When people usually change the permissions of a directory like /files do they just edit that single directory name from their FTP program or do they do something different?
Thanks again for your help.
Hi, I'm getting the below error when I try to replace an image (but I can upload a new one):
"Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server."
Also, even when I can upload an image the thumbnail isn't generated. I tried changing files/thumbnails/ to 777 with no change.
I would appreciate any pointers at all as I'm really stuck here. Thanks.
"Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server."
Also, even when I can upload an image the thumbnail isn't generated. I tried changing files/thumbnails/ to 777 with no change.
I would appreciate any pointers at all as I'm really stuck here. Thanks.
It looks like the folder permissions have changed but not the contents.
From Fetch FTP website,
"Setting a remote folder's permissions does not set the permissions of its contents — it only changes the permissions of the folder itself.
To Batch Change Permissions
Create a workflow that consists of a Get Selected Fetch Items action, followed by a Set Fetch Item Permissions action. Then select the files whose permissions you want to set in a Fetch transfer window, and run the workflow. While you can batch change permissions using the info window, you cannot set file and folder permissions independently when you do that; with the Set Fetch Item Permissions action, you can.
If you want to recursively change permissions (that is, change the permissions for all the files and folders inside the items you've selected) insert a Get Fetch Folder Contents action before the Set Fetch Items Permissions action, and check the "Repeat for each subfolder found" checkbox. Use with caution, since setting permissions is not undoable."
You could also use c Panel or contact your hosting co to get the permissions changed.
Colin
From Fetch FTP website,
"Setting a remote folder's permissions does not set the permissions of its contents — it only changes the permissions of the folder itself.
To Batch Change Permissions
Create a workflow that consists of a Get Selected Fetch Items action, followed by a Set Fetch Item Permissions action. Then select the files whose permissions you want to set in a Fetch transfer window, and run the workflow. While you can batch change permissions using the info window, you cannot set file and folder permissions independently when you do that; with the Set Fetch Item Permissions action, you can.
If you want to recursively change permissions (that is, change the permissions for all the files and folders inside the items you've selected) insert a Get Fetch Folder Contents action before the Set Fetch Items Permissions action, and check the "Repeat for each subfolder found" checkbox. Use with caution, since setting permissions is not undoable."
You could also use c Panel or contact your hosting co to get the permissions changed.
Colin
Thanks so much for this answer, it's really appreciated. At risk of sounding a bit dumb, is changing permissions recursively the way everyone does it or is it just me who just changes the initial folder permissions? To be honest I assumed that when you changed the files/ folder to 777 everything inside it changed too.
Thanks again.
Thanks again.
Glad to be of help.
Changing permissions recursively is what I do in most cases as I usually want the permissions to all files and folders below.
Changing permissions recursively is what I do in most cases as I usually want the permissions to all files and folders below.
Check the permissions for /files/cache are also 777.
You can hide the errors from visitors by going to dashboard / System & Settings / Debug Settings and check "Hide errors from site visitors".
I hope this helps
Colin