WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#8308 closed defect (bug) (invalid)

Problem with uploading

Reported by: sekundek Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Upload Keywords:
Focuses: Cc:

Description

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.

Change History (1)

comment:1 @jacobsantos7 years ago

  • Milestone 2.7 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Appears to be server issue. Check with support forums and if it is concluded to be a WordPress issue, reopen ticket or open better named ticket with better description for solving the problem.

Note: See TracTickets for help on using tickets.