[wp-trac] [WordPress Trac] #24925: Improve no disk space error handling when updating plugins
WordPress Trac
noreply at wordpress.org
Fri Jan 13 11:33:43 UTC 2017
#24925: Improve no disk space error handling when updating plugins
-------------------------------------+------------------------------
Reporter: Daedalon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version:
Severity: minor | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses:
-------------------------------------+------------------------------
Changes (by thomaschr):
* keywords: needs-patch => needs-patch 2nd-opinion
* type: defect (bug) => enhancement
* severity: normal => minor
Comment:
I thought about adding a String Variable to the Filesystem Class called
lasterrordetail.
With a new method getlasterrordetail() in the Filesystem Subclasses you
can get a detailed errorstring for the last occured error.
This string can then be filled in the mkdir Method.
Sounds this to much like a dirty hack because I'm not using the WP Error
Class?
Greetings,
Thomas
PS: You can easily recreate the "Bug" when your disk is full and you're
installing a new plugin.
PPS: Checking for a full filesystem in the path is simply a matter of
calling disk_free_space($path). This holds true for the direct filesystem
class, the others need to be handled differently.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24925#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list