User upload image is 404 (SOLVED - due to sub-directory permissions)
Hi all,
Using 2.1 release and I've noticed that whenever a user tried to upload their own image for the forum in their profile, it just results in a 404 error when the image is then requested. The upload
directory is writable by PHP, and the upload does appear to occur (although I don't see the file created on the file system).
Checking the error log for the server I see only warnings about PHP strict standards ("PHP Strict Standards: Only variables should be passed by reference in class.autoloader.php", etc).
Has anyone else had any problems with user uploader images in 2.1?
Thanks,
Allan
Best Answer
-
peregrine MVP
turn off strict mode for best results.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
turn off strict mode for best results.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks for the reply. I have now turned off strict standards, but the result was the same. It turned out that although I had the correct permissions on the
uploads
directory, I didn't on the sub-directories :-(. Doh - sorry about that!Allan
@allanj
Thanks for coming back with your resolution.
You'd be surprised (or possibly not) how many don't.