uploaded avatar not visible

Started by oldpaint, January 28, 2008, 04:13:28 PM

Previous topic - Next topic

oldpaint

I created a directory ( http://mysite.com/board/attachments/avatars ) so members can upload their own avatars. A member uploaded an avatar through his account and the avatar does not display in his profile or on his posts. I checked the directory on the server and saw that the image he uploaded was there and its a .jpg. All the subdirectories under the directory that smf is installed in that lead to the 'uploaded avatar directory' are chmod to 777 and I also set the image itself to 777. The dimensions of the image are within the allowable limits I specified. The path and url settings for avatar uploads point to the same directory. The option to choose an avatar rather than upload your own works just fine.

Oldiesmann

Are there any errors in the forum error log?

oldpaint

I just checked it and there are no errors that apply to this problem.

oldpaint

Ok, I think its some kind of server issue. I looked at the page source and found the image tag with the name of the image that was supposed to be displayed and copied and pasted the url of the image into the browser address bar and got an error saying

"403 forbidden

Server configuration does not allow access to this page. Please go back and try again"


oldpaint

The problem turned out to be the htaccess that was in the directory by default was denying access to all but 'localhost' so I just created a new upload directory. Originally I created the uploaded avatar directory under the attachments directory and the attachments directory had the htaccess file which was causing the problems. So the new directory is not under the attachments directory anymore.

Advertisement: