[wp-trac] [WordPress Trac] #24761: PHP Warning: filesize(): stat failed for /tmp/php4eOOiM in wp-admin/includes/ms.php on line 30, referer: http://foo.somesite.com/wp-admin/post.php?post=81&action=edit

WordPress Trac noreply at wordpress.org
Mon Jul 15 18:08:21 UTC 2013


#24761: PHP Warning:  filesize(): stat failed for /tmp/php4eOOiM in wp-
admin/includes/ms.php on line 30, referer: http://foo.somesite.com/wp-
admin/post.php?post=81&action=edit
--------------------------+-----------------------------
 Reporter:  conner_bw     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.5.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Seeing this more often than I would like.

 PHP Warning:  filesize(): stat failed for /tmp/php4eOOiM in wp-
 admin/includes/ms.php on line 30, referer: http://foo.somesite.com/wp-
 admin/post.php?post=123&action=edit

 Line ~30 looks like:

 {{{
 $file_size = filesize( $file['tmp_name'] );
 }}}

 $file could have {{{['error']}}}, not exist because it's too big and was
 deleted, etc.

 IMHO this should be checked before filesize.

 Thank you for your consideration.

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


More information about the wp-trac mailing list