No announcement yet.

Error when trying to upload avatar

  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when trying to upload avatar

    Users can't upload avatars. An error message comes up when you click "save":
    Warning: copy(./customavatars/avatar1328_2.gif): failed to open stream: Permission denied in /includes/functions_upload.php on line 340
    I checked the another thread
    where the problem is similar. I changed the /images/avatars permissions from 755 to 777, but this did not help.

    Here are the lines in the /includes/functions_upload.php that the error message refers to:

    Line 340:
    copy($filename , "$vboptions[avatarpath]/avatar$userinfo[userid]_" . ($userinfo['avatarrevision'] + 1) . '.gif');

    Any idea's anyone?

  • #2
    Its gotta be permissions.. cant be anything else. I'm sure of it.


    • #3
      Yes? Which permissions can it be then..? Can there be other than the /images/avatars directory I need to change to 777?


      • #4
        I now also tried changing permissions for my /tmp directory to 777 as suggested in this thread:, but that didn't help either..

        Any ideas?


        • #5
          Fill out a support ticket at:

          Be sure to include the login info to your Admin CP, phpMyAdmin and FTP. Please also include a complete description of the problem.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography

          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.