Unable to upload Avatar Image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stb74
    Senior Member
    • Nov 2008
    • 109

    [Forum] Unable to upload Avatar Image

    When trying to upload an avatar image I get the error message Unable to save image.

    I have safe mode off

    I have checked the Diagnostic - Uploads and reports no errors.
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Enable phpinfo in the Admin CP, then provide the URL to your forums. This may help us troubleshoot this problem.

    Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Public phpinfo() Display Enabled
    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.


    Comment

    • stb74
      Senior Member
      • Nov 2008
      • 109

      #3

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        You have open_basedir restrictions on your server. To get uploads to work you need to create a 'tmp' subdirectory under your main hosting directory and chmod it to 777. Then in the Admin CP set "Upload In Safe Mode?" to 'Yes' and point the "Safe Mode Temp Directory" to that directory. Your server limites the open_basedir directory to one of these root folders:

        /php
        /web
        /tmp

        You will probably need root access to the server to do this.

        Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Temporary Directory

        Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled -> Yes

        Also the php.ini setting for 'upload_tmp_dir' is set to/php. That directory must exist and it must be chmod'd to 1777.

        In addition, another possible cause of this problem is the suhosin module in PHP. If so this can be fixed by editing the php.ini (requires root access to the server) or by via a .htaccess file with the following contents:

        php_flag suhosin.cookie.encrypt Off
        php_value suhosin.request.max_vars 2048
        php_value suhosin.post.max_vars 2048


        You can create your own .htaccess file and upload it to your main forum directory. It's a simple text file.

        If this doesn't work or you get an 'Internal Server Error' after doing this, then unfortunately this means that your host is not allowing this change. The only thing you can do now is to ask your host to make the necessary changes to suhosin.

        Here is a post that lists some of the recommended suhosin settings for compatibility with vB:

        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.


        Comment

        • Schmike
          Member
          • Jan 2011
          • 48
          • 4.0.x

          #5
          having the same problem for my site for upload or by URL.

          there is no value for upload_tmp_dir in my phpinfo. everything else was already set as per the above.

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            Please start your own thread with all the relevant details. Thank you.
            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.


            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎