[wp-trac] [WordPress Trac] #43608: Display missing module error for GD when on Media Settings
WordPress Trac
noreply at wordpress.org
Thu Mar 22 06:16:08 UTC 2018
#43608: Display missing module error for GD when on Media Settings
------------------------------+-----------------------------
Reporter: simonrcodrington | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.6
Severity: normal | Keywords:
Focuses: administration |
------------------------------+-----------------------------
When WordPress is installed on a server is
[http://php.net/manual/en/book.image.php missing the GD PHP image
library], there should be an admin level warning displayed on the Media
Settings admin page.
Without the GD module there will be '''no intermediate image sizes created
when images are uploaded in the media library''' (the media gallery just
uses the full image size by default)
[https://pasteboard.co/Hd2hc9L.jpg Without Admin Notice]
The Media Settings page should display an admin warning / error that tells
the user that they're missing that module and without it no intermediate
images will be created. The whole page talks about the various images size
and without GD none of these settings will be used for anything.
I've created a simple gist that displays an admin notice if the '''GD
library isn't loaded''' and the current user is on the '''Media
Settings''' page.
[https://pasteboard.co/Hd2hVdk.jpg With Admin Level Notice]
[https://gist.github.com/simonrcodrington/be60b6daae0b966a559878c4ba16d9d0]
This has come up a few times now where images haven't been created in the
media library and no one has known why. Sometimes hosting providers don't
include this extension or they are just not loaded. Having an admin level
notice here would make sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43608>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list