MyBB Community Forums

Full Version: strange avatar problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I can get access to my avatar database, but i can't upload my own avatar.
This is the error i'm getting:

Warning: move_uploaded_file(./uploads/avatars/avatar_1.jpg): failed to open stream: Permission denied in /home/www/kvv.awardspace.com/forum/inc/functions_upload.php on line 256

Warning: move_uploaded_file(): Unable to move '/tmp/phpDINGwP' to './uploads/avatars/avatar_1.jpg' in /home/www/kvv.awardspace.com/forum/inc/functions_upload.php on line 256

The second problem i'm facing is that i can see the directory 'uploads' on my server, but there is no directory 'avatars' inside it.
I have tried to upload it again but there is still no avatar directory visible.
I alsow tried to set chmod to almost everything setting. No luck.
currently these are my chmod settings:
uploads-777
index.html - 666
post_1_1144675798.attach - 666
post_1_1144675798_thumb.jpg - 666

The file mentioned in the error above is chmod 755.
but here i alsow tried different chmod settings.

The ftp client i'm using is ipswitch ws_ftp pro.
hello there

./uploads and ./uploads/avatars should be chmoded to 777.

Any uploaded file will automaticly be chomded to 777 anyway.

No in your case ./uploads/avatars isn't there so using ws_ftp make a new directory using (MkDir) button inside uploads which will be the avatars directory. if everything went ok. upload into from the local package ./uploads/avatars/index.htm

regards
Tried that also
(to make new avatar dir. with ftp client)
Quess what?...doesn't work either.

any new ideas?

(told you it was trange Wink)
Did you CHMOD the new directory to 777?
jep

It's like it can't connect to the download dir.
It gives me connection errors or doesn'n connect at al.
I can't remove folders or make new folders in that dir.
Al other dir. are fine. I can upload files to them without
any problems.
Just want to confirm - are attachments working fine and it is just avatars which aren't?
As far as i could see for now everything is working fine.
I uploaded an image allong with a thread, put smilies in it,
added new smillies to the smiley database.
so it's just the avatar problem.

(the avatars which where already in the database work also)
The problem certainly does look like a CHMOD or directory ownership problem then - because avatars are uploaded using the same functionality as attachments.

A simple test for this, upload a file (save it as check.php or similar) with the following contents:
@chmod("uploads/avatars", 0777);
if(is_writable("uploads/avatars"))
{
  echo "Avatar directory is writable.";
}
else
{
  echo "Avatar directory is not writable.";
}

Paste the result here.

Chris
[kvv.awardspace.com] [Wed Apr 12 19:01:40 2006] [error] [client 85.146.57.93] Premature end of script headers: check.php | directory is writable by others /home/www/kvv.awardspace.com/forum/uploads
Error 500: Script Execution Failure


I could upload that textfile in the downloads dir. ?!?
If i try to upload something else, folders or other files...still nothing.
Place it in the directory of your forums not your uploads directory.
Pages: 1 2