[wp-trac] [WordPress Trac] #24925: Improve no disk space error handling when updating plugins

WordPress Trac noreply at wordpress.org
Fri Aug 16 19:44:15 UTC 2013


#24925: Improve no disk space error handling when updating plugins
--------------------------+------------------------------
 Reporter:  Daedalon      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by csixty4):

 It's a great idea from a user experience standpoint, but complicated by
 the fact PHP's filesystem & FTP functions don't give any kind of useful
 error status. The filesystem code could do a set of triage checks after
 failures, but that would only identify reasons that *might* prevent an
 upgrade from completing.

 I'm working on a plugin called [https://github.com/daveross/upgrade-first-
 aid upgrade-first-aid] that does those kinds of checks outside of the
 plugin upgrader itself. It might be a good idea to add a disk space check
 ([http://php.net/manual/en/function.disk-free-space.php
 disk_free_space()]) to that plugin's code.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24925#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list