Opened 10 years ago
Last modified 4 years ago
#30963 new defect (bug)
Wrong error message when uploading non-zip files on the plugin upload page
Reported by: | jnhghy | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | needs-patch |
Focuses: | administration | Cc: |
Description
If you go to plugins -> upload plugin and you try to insall a .php file instead of a zip file you get this error message: Abort class-pclzip.php : Missing zlib extensions.
This error message is bad, zlib extensions are not missing, the file type is wrong.
Also this message is missing translation support (I might be wrong on this).
Change History (5)
#3
in reply to:
↑ 2
@
10 years ago
Replying to dd32:
The error outlined in the ticket here,
Abort class-pclzip.php : Missing zlib extensions
occurs when the PHP installation is missing bothZipArchive
support, and doesn't containgzopen()
(ie. missing zlib extension, or that ubuntu bug #30213). In this case all update-related functionality doesn't work, and we don't appear to check support properly.
Small clarification: If the install has ZipArchive
support, but no gzopen()
available, and a non-zip is uploaded, it'll also hit the above conditional, which is currently wrapped in a die()
A non-zip currently errors out with the following message, which is pretty terrible, I agree.
The error outlined in the ticket here,
Abort class-pclzip.php : Missing zlib extensions
occurs when the PHP installation is missing bothZipArchive
support, and doesn't containgzopen()
(ie. missing zlib extension, or that ubuntu bug #30213). In this case all update-related functionality doesn't work, and we don't appear to check support properly.