Unable to upload files or images in CMSMS

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
Erlend

Unable to upload files or images in CMSMS

Post by Erlend »

Hey. First of all, thanks guys for the excellent CMS! Good work!

So, the problem: After running version 0.10.3 for a few days I found that I am unable to upload images using the 'Image Manager' and 'File Manager' within CMS. The resulting error message is 'File could not be uploaded. Permissions problem?'

Could you point me to what permissions I should check and what they should be? Or maybe this is a known problem with some other strange solution? Thanks!


brgds Erlend in Norway
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Unable to upload files or images in CMSMS

Post by Ted »

When you installed CMSMS, did you set the permissions of the uploads and uploads/images directories?  Do the same thing with those 2 dirs that you had to do with tmp/cache and tmp/tempaltes_c.
Erlend

Re: Unable to upload files or images in CMSMS

Post by Erlend »

Hey again

Sorry, I forgot to mention that I upgraded from version 0.9.something to 0.10.3. The folder permissions appear to be correctly set, I have verified that tmp/templates_c, tmp/cache, uploads and uploads/images are all still set to 777.

So, what is the next step to solve this? Thanks again!


-E
Erlend

Re: Unable to upload files or images in CMSMS

Post by Erlend »

Hey

This file/image upload problem still remains unsolved. Can you please advice where else to look for the cause of it? Thanks!


brgds Erlend
Erlend

Re: Unable to upload files or images in CMSMS

Post by Erlend »

Hello again

Maybe I didn't explain the problem properly, so I'll try to be more specific:

After upgrading to CMSMS 0.10.3, images and files won't upload even though the folder permissions are correct. Instead, CMSMS gives this error message: 'File could not be uploaded. Permissions problem?'

Any ideas? Thanks!


brgds Erlend in Norway
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Unable to upload files or images in CMSMS

Post by Ted »

Just looking at the code.  That error message can only happen during one thing.  When you upload a file via PHP, it puts it into a temp directory on the server.  Then, the script is given access to evaluate that file to make sure it's ok, and moves it to the directory of it's choice.  That messages shows up if it can't move that file from the temp directory to it's new home.  9 out of 10 times, it's a permissions issue on the directory.

Other things worth checking are the uploads_url, uploads_path, image_uploads_path and image_uplods_url in config.php.

If you do change anything in config.php, remember to clear the cache afterwards.
Erlend

Re: Unable to upload files or images in CMSMS

Post by Erlend »

Found it - problem solved! It was the filesize parameter (default 1000000) and the fact that the cache had to be flushed. I wasn't aware of that for config.php changes. My bad.

May I suggest a different error message when the upload fails due to filesize violations? As a sidenote, after the upgrade to 0.10.3 CMSMS fails to display pictures with nordic characters (ø, æ, å, ö, ä)  in their names. It used to just replace those characters with '_' before, now the whole image is replaced by a string with the filename.

Thanks heaps for the quick help - all operations normal now :-)


-E

btw, CMSMS rocks!
Locked

Return to “CMSMS Core”