Log in

View Full Version : error then upload


p30suite
02-14-2009, 06:34 PM
hi
then i'am uploading file with direct link from other site to my site
this error show:
Upload failed due to failure writing temporary file.
and up this page other error show:
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/majidonline/:/tmp:/usr/local/lib/php/) in [path]/includes/class_upload.php on line 275

please help me
sorry i cant speake english very well

snakes1100
02-14-2009, 06:40 PM
open_basedir restriction in effect.

you need to turn that off in php.ini & restart apache if its a dedicated server or vps

if this is a vhosted site, your host might allow local php.ini files, upload a php.ini file to your root forums directory with this in it.

open_basedir = off

p30suite
02-14-2009, 07:26 PM
my server can done this work?

snakes1100
02-14-2009, 07:31 PM
With the language barrier, it might be better to post the questions in both english and your native language, maybe then someone can better answer your question in your native language to help you better understand.

Your server is causing the issue due to open_basedir is turned on.

p30suite
02-14-2009, 07:39 PM
thanks
i'm sorry

snakes1100
02-14-2009, 07:47 PM
No need to apologize, my first post tells you how to fix the issue.