PDA

View Full Version : Error if somebody upload Thumbnails


dxflw
02-15-2009, 03:51 PM
I get this eror if i try to upload thumbnail from URL to the thread:

http://i40.tinypic.com/5jhg7j.jpg:
Upload failed due to failure writing temporary file.

snakes1100
02-15-2009, 04:02 PM
Is safe_mode on?

admincp --> maintenance --> view php info

Look for safe_mode on/off, let us know what its set to

If its on, use the option in the admincp to set a directory to allow uploads in a safe manner to not harm the server as its a vhost.

admincp --> vbulletin options --> Server Settings and Optimization Options
Safe Mode Upload Enabled <-- set to yes
Safe Mode Temporary Directory /temp <-- this is relative to your public_html/root folder.

Ie...
http://www.mydomain.com/forum/temp and chmod the new temp folder to 777

dxflw
02-15-2009, 04:50 PM
Yes its on the safe mod

--------------- Added 1234724801 at 1234724801 ---------------

Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 10509 is not allowed to access /tmp/vbuploadcUWkvg owned by uid 33 in [path]/includes/class_upload.php on line 281

Warning: fopen(/tmp/vbuploadcUWkvg) [function.fopen]: failed to open stream: Success in [path]/includes/class_upload.php on line 281

snakes1100
02-15-2009, 05:14 PM
Follow the instructions from my 1st post.

dxflw
02-15-2009, 05:18 PM
i have done all what you say adove and i get this warning

snakes1100
02-15-2009, 05:21 PM
According to the error, your still trying to access /tmp, not /temp like i posted above.

dxflw
02-15-2009, 05:31 PM
i have create a folder called "temp" with 777 CHMOD premissions in the location:
httpdocs/
& httpdocs/forum/

and in the admincp
Safe Mode Upload Enabled: yes
Safe Mode Temporary Directory: /temp

but i still see the warning... :(

--------------- Added 1234726660 at 1234726660 ---------------

Ok finish!!!
/vhosts/*******.net/httpdocs/temp they must be like this and now its working!

Thank you very much snake!!!;)

snakes1100
02-15-2009, 05:38 PM
I assume your using Plesk?

Edit the domain setting in the plesk panel and turn safe_mode off.

If not we can try a few other things:
upload a php.ini file into your httpdocs folder with this in it safe_mode = off (Only owrks if host allows local php.ini's

edit your .htaccess file and add this to it:
php_flag safe_mode = off (Again dependent on host)

dxflw
02-15-2009, 05:46 PM
i cant see any .htaccess in the ftp...

snakes1100
02-15-2009, 06:02 PM
Yes, some servers are different, you must make it the full path as you did, sorry.

Your welcome.

dxflw
02-15-2009, 06:16 PM
No matter its working now fine.
Cu around ;D