[wp-trac] [WordPress Trac] #30963: Wrong error message when uploading non-zip files on the plugin upload page

WordPress Trac noreply at wordpress.org
Sun Jan 11 04:41:28 UTC 2015


#30963: Wrong error message when uploading non-zip files on the plugin upload page
--------------------------+------------------------------
 Reporter:  jnhghy        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by dd32):

 A non-zip currently errors out with the following message, which is pretty
 terrible, I agree.
 {{{
 The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable
 to find End of Central Dir Record signature
 }}}

 The error outlined in the ticket here, {{{Abort class-pclzip.php : Missing
 zlib extensions}}} occurs when the PHP installation is missing both
 `ZipArchive` support, and doesn't contain `gzopen()` (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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30963#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list