Avatar Uploading Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JBrook
    New Member
    • Sep 2009
    • 2

    Avatar Uploading Error

    Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/salvatio/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in [path]/includes/class_dm_userpic.php on line 204

    Warning: fopen() [function.fopen]: Filename cannot be empty in [path]/includes/class_image.php on line 333

    I get that error when i upload any Avatars. I dont know whether its a setting or anything.

    I have a fresh installation of 3.8.4 which i purchased the other day and have recently just put it on.

    Any ideas?
  • NKBlaze
    Senior Member
    • Mar 2009
    • 147
    • 3.8.x

    #2
    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. If you placed the tmp directory in the right place, the path to the Safe Mode Temp Directory will be:

    /home/mysite/tmp

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

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


    Also the php.ini setting for 'upload_tmp_dir' may be empty. It's possible you (as root) or your host will need to edit php.ini and set 'upload_tmp_dir' to point to the full path to a directory on the server that is chmod'd to 1777. You will also need to restart Apache after making this change.
    __________________

    Comment

    • JBrook
      New Member
      • Sep 2009
      • 2

      #3
      Ok, That worked fine.

      Thank you very much.

      Comment

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