[wp-trac] [WordPress Trac] #10604: class-wp-filesystem-ssh2.php put_contents fails

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 13 13:44:15 UTC 2009


#10604: class-wp-filesystem-ssh2.php put_contents fails
-----------------------------+----------------------------------------------
 Reporter:  lostinlafayette  |       Owner:  dd32      
     Type:  defect (bug)     |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  Filesystem       |     Version:            
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------
 On certain systems class-wp-filesystem-ssh2->put_contents will fail if the
 contents of the file are empty.

 One possible solution is to check the length of $content and if it is 0
 append a space.

 This issue prevents many people from upgrading wordpress automatically
 using ssh.

 Could not copy file: /home/complete_blog/public_html/blog/wp-
 content/upgrade/wordpress-2.8.47/wordpress/wp-
 includes/js/codepress/engines/khtml.js

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


More information about the wp-trac mailing list