help me fix this please.

mojopanel

New Member
When i upload a avatar i get,

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

(the avatar still uploads)

When i try to upload a avatar via URL i get this.

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home:/usr:/tmp:/var/netenberg) in [path]/includes/class_upload.php on line 275

And it says
Upload failed due to failure writing temporary file.

Can any one tell me why this happens./..
 
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.

You might want to try using the file upload diagnostic in maintenance to see if it works of gives you any more info. Usually, this is a hosting problem that you need to get your provider to fix for you but the above may be a work around that you can do. Hope it works out for you. Otherwise, contact your host and tell them you need them to fix the configuration of their /tmp folder.
 
i get

when i upload a image via

Maintenance > Diagnostics > Upload
file_uploads: On
open_basedir: /home:/usr:/tmp:/var/netenberg
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 5.00 MB
 
Back
Top