Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/ntwiles:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/class_upload.php on line 346
Avatar Upload Problem
Collapse
X
-
Avatar Upload Problem
Tags: None -
Try a test upload:
Admin CP -> Maintenance -> Diagnostics -> Upload
What are the results of the test? -
You have open_basedir restrictions on your server. To get uploads to work you need to create a 'tmp' subdirectory under your /home/ntwiles 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/ntwiles/tmp
Also the php.ini setting for 'upload_tmp_dir' is 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
-
I've got the same problem.
Diagnostics say
file_uploads: on
open_basedir: /var/kunden/webs/Toq/vBulletin/:/tmp/
safe_mode: on
upload_tmp_dir: -
upload_max_filesize: 10,00 MB
I created a directory called tmp in that place and set the chmod to 777.
Is the missing upload_tmp_dir the problem or something else?
Is the colon in "/var/kunden/webs/Toq/vBulletin/:/tmp/" correct?Comment
-
Does the test upload fail? safe_mode is on and there is an open_basedir restriction, so you might need to enable safe mode in your:
Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled
Also try setting the Safe Mode Temporary Directory to this:
/tmpComment
-
Does the test upload fail? safe_mode is on and there is an open_basedir restriction, so you might need to enable safe mode in your:
Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled
Also try setting the Safe Mode Temporary Directory to this:
/tmp
Can't the missing value for the upload_tmp_dir in the php.ini be the problem?
Unfortunately, I can't edit it and I can't reach my host ...
edit: My phpinfo:
Last edited by Septic_Schizo; Sat 12 Apr '08, 2:22am.Comment
-
-
We solved the problem a few days ago and I just want to describe the solution for people who might encounter the same problem.
The upload_tmp_dir was the problem. We had no open_basedir restriciton and the safe_mode in php.ini was turned off.
So we just disabled safe_mode in Admin CP and entered a specific upload_tmp_dir in php.ini. Thats all.
With safe_mode enabled but without an upload_tmp_dir it didn't work.Comment
-
I got this
file_uploads: On open_basedir: /home/forumzpl/:/usr/lib/php:/usr/local/lib/php:/tmp safe_mode: Off upload_tmp_dir: None upload_max_filesize: 100.00 MBComment
-
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.
Comment