[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:43:58 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):

 Replying to [comment:2 dd32]:
 > 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.

 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()`

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


More information about the wp-trac mailing list