- Affected version
- 2.1.7
Updated yum packages to:
libzip5-1.6.0-1.el7.remi.x86_64
php-pecl-zip-1.16.0-1.el7.remi.7.3.x86_64
libarchive-3.1.2-14.el7_7.x86_64
When running
The whole output:
Admin panel shows "ZipArchive support: Yes".
Sample code works fine:
libzip5-1.6.0-1.el7.remi.x86_64
php-pecl-zip-1.16.0-1.el7.remi.7.3.x86_64
libarchive-3.1.2-14.el7_7.x86_64
When running
php cmd.php xf-addon:build-release ...
seeing error:ErrorException: [E_WARNING] ZipArchive::addFile(): Invalid or uninitialized Zip object src/XF/Service/AddOn/ReleaseBuilder.php:413
The whole output:
Code:
Performing add-on export.
Exporting data for ...
Written successfully.
Attempting to validate addon.json file...
JSON file validates successfully!
Building release ZIP.
In ReleaseBuilder.php line 413:
[E_WARNING] ZipArchive::addFile(): Invalid or uninitialized Zip object
xf-addon:build-release [--skip-hashes] [--] <id>
Admin panel shows "ZipArchive support: Yes".
Sample code works fine:
Code:
<?php
$zip = new ZipArchive;
$zip->open('test.zip', ZipArchive::CREATE);
$zip->addFile('test.txt');
$zip->close();
Last edited: