[wp-trac] [WordPress Trac] #29775: Media manager bug

WordPress Trac noreply at wordpress.org
Fri Dec 12 14:00:21 UTC 2014


#29775: Media manager bug
-------------------------------+------------------------------
 Reporter:  rudybrinkman       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by kitchin):

 I'd be interested in seeing what inserting this debug line produces in
 your error_log:

 {{{
 while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
         if ( @$debugx++ < 11 ) error_log( "debugx=$debugx,
 target='$target', target_parent='$target_parent'" );
         $target_parent = dirname( $target_parent );
 }
 }}}

 The expected result is nothing in the error log, unless `wp-
 content/uploads/2014` is missing (the code inside the loop is only reached
 when two or more levels of directory are missing). So to check the debug
 code is working, you could also insert this error_log() line at the start
 of the function (line 1468 in WP 4.0.1):

 {{{
 function wp_mkdir_p( $target ) {
         error_log( "wp_mkdir_p: target='$target'" );
         $wrapper = null;
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29775#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list