Warning: tempnam() [function.tempnam]:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stijndevreede
    Member
    • Oct 2010
    • 33
    • 4.0.x

    [Forum] Warning: tempnam() [function.tempnam]:

    When someone uploads an avatar; it works but it gives this in the redirect window, I don't know or it is a problem or something I've got to do something against?


    Code:
    Warning: tempnam() [[URL="http://www.jelplusforum.nl/function.tempnam"]function.tempnam[/URL]]:  open_basedir restriction in effect. File() is not within the allowed  path(s): (/home/[MY PATH]/:/tmp:/usr/local/lib/php/) in [path]/includes/class_dm_userpic.php on line 204
    
    Warning: fopen() [[URL="http://www.jelplusforum.nl/function.fopen"]function.fopen[/URL]]: Filename cannot be empty in [path]/includes/class_image.php on line 333
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #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.

    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' 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.
    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...