Can not upload custom Avatar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UnderEstimated
    Senior Member
    • May 2006
    • 117

    Can not upload custom Avatar

    Using 4.2.3
    PHP 5.4.32

    The Error
    Code:
      [B][B]vBulletin Message[/B][/B]
    
      [COLOR=#65A5D1][B]Upload of file failed.[/B][/COLOR]
    And then Diagnostics. It was on Safe mode before still had error turned off the safe mode but error is still there
    Pertinent PHP Settings
    file_uploads: On
    open_basedir: None
    safe_mode: Off
    upload_tmp_dir: None
    upload_max_filesize: 2.00 GB
    Results
    No errors occurred while opening the uploaded file for reading.
  • UnderEstimated
    Senior Member
    • May 2006
    • 117

    #2
    Very fast responses I am amazed at the support.

    Comment

    • kh99
      Senior Member
      • Aug 2009
      • 533

      #3
      Yeah, unfortunately there are a lot of error conditions that result in "Upload of file failed", so it's difficult. If you are saving custom avatars in the file system, check the directory permissions.

      Is it only avatars? If you try to upload an image attachment does that work? Edit: ...or profile pictures? That might be a better test,
      Last edited by kh99; Fri 3 Jul '15, 1:19pm.

      Comment

      • UnderEstimated
        Senior Member
        • May 2006
        • 117

        #4
        Originally posted by kh99
        Yeah, unfortunately there are a lot of error conditions that result in "Upload of file failed", so it's difficult. If you are saving custom avatars in the file system, check the directory permissions.

        Is it only avatars? If you try to upload an image attachment does that work? Edit: ...or profile pictures? That might be a better test,
        Yes right attachments are not uploading either. I have searched and try to find solutions and those didnt work out yet.

        Comment

        • Mark.B
          vBulletin Support
          • Feb 2004
          • 24288
          • 6.0.X

          #5
          Are you storing avatars in the file system, or in the database?
          MARK.B
          vBulletin Support
          ------------
          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

          Comment

        • UnderEstimated
          Senior Member
          • May 2006
          • 117

          #6
          File System.
          Just in case you didnt get the notification for it.

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 74167

            #7
            What is the size of the avatar? Height, Width and bytes?

            Does this correspond with the image settings for that image type under Attachments -> Attachment Settings?

            Is it within the limits set for that usergroup under Usergroup Manager?

            Did you use the same image in the diagnostic?

            You should have your hosting provider or server administrator update the upload_tmp_dir to an actual directory. Then PHP won't be compelled to try and hold the uploads in available memory. It can write it to disk until vBulletin processes it.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • UnderEstimated
              Senior Member
              • May 2006
              • 117

              #8
              Answer to all the questions is Yes and image size was within the limit. Tried it with Admin account which has sufficient permission and limit.
              Pertinent PHP Settings
              file_uploads: On
              open_basedir: None
              safe_mode: Off
              upload_tmp_dir: /home/public_html/tmp
              upload_max_filesize: 2.00 GB
              Results
              No errors occurred while opening the uploaded file for reading.
              Still the same.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 74167

                #9
                What is the image in question? Can you upload it here?
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • UnderEstimated
                  Senior Member
                  • May 2006
                  • 117

                  #10
                  Originally posted by Wayne Luke
                  What is the image in question? Can you upload it here?
                  I tried different ones but this is the latest one I tried.

                  Click image for larger version

Name:	test.gif
Views:	58
Size:	20.9 KB
ID:	4324985

                  Comment

                  • kh99
                    Senior Member
                    • Aug 2009
                    • 533

                    #11
                    Originally posted by UnderEstimated
                    Yes right attachments are not uploading either. I have searched and try to find solutions and those didnt work out yet.

                    Did you try a non-image attachment?

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74167

                      #12
                      Nothing wrong with the image itself that I can see. Are you trying to upload it from a URL or from your local drive? I would try the local drive. I was able to upload it to vBulletin 4 and vBulletin 5 without problems but only from my local drive, not a URL.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • UnderEstimated
                        Senior Member
                        • May 2006
                        • 117

                        #13
                        No
                        Originally posted by Wayne Luke
                        Nothing wrong with the image itself that I can see. Are you trying to upload it from a URL or from your local drive? I would try the local drive. I was able to upload it to vBulletin 4 and vBulletin 5 without problems but only from my local drive, not a URL.
                        And I am trying the local drive.

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 74167

                          #14
                          It would have be related to your server settings then. What are the results of the php info command? It is under Maintenance in the admincp.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment

                          Related Topics

                          Collapse

                          Working...