[wp-trac] [WordPress Trac] #8308: Problem with uploading

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 21 16:52:56 GMT 2008


#8308: Problem with uploading
----------------------+-----------------------------------------------------
 Reporter:  sekundek  |       Owner:     
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:  2.7
Component:  Upload    |     Version:  2.7
 Severity:  normal    |    Keywords:     
----------------------+-----------------------------------------------------
 When I upload photos, I sometimes get error "Failed to write file to
 disk". But trying the same file again with same settings It succeed.
 Sometimes I need to try it several times.  I'm using php 5.2.6.
 Permissions are correctly set, but in php error log is printed:

 PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/tmp)
 is not within the allowed path(s): (/home/currentuser) in Unknown on line
 0
 [22-Nov-2008 16:38:34] PHP Warning:  File upload error - unable to create
 a temporary file in Unknown on line 0

 Where is this "/var/tmp" came from because the upload_tmp_dir ini setting
 is set to directory inside this open_basedir. Strange this does not
 happened all the time.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8308>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list