Composer is Failing on Several Packages
- This topic has 5 replies, 3 voices, and was last updated 11 months, 1 week ago by
Chicharito.
-
AuthorPosts
-
May 4, 2024 at 8:44 AM #45368
Chicharito
ParticipantAfter clearing the cache and trying to update/install, I get the following error:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.May 6, 2024 at 8:33 PM #45382Peter
ModeratorHello there,
What is the package that causes the issue on your project? Please follow some topics below to fix the issue with Composer
https://stackoverflow.com/questions/70285340/composer-package-not-extracting-end-of-central-directory-signature-not-found
https://stackoverflow.com/questions/73948328/error-unzip-end-of-central-directory-signature-not-foundYou can also contact your hosting support and ask them for help with this issue.
May 7, 2024 at 2:00 AM #45387Chicharito
ParticipantHi Peter,
The issue is happening in my local environment
I already tried:
"composer -rf vendor"
"composer clearcache"
"composer install"The packages causing the issue are:
- mb-admin-columns
- mb-revision
- mb-settings-page
- meta-box-conditional-logic
- meta-box-group
- meta-box-include-exclude
- meta-box-show-hideAs additional info, I'm also getting:
unzip: cannot find zipfile directory in one of /Users/XXX/XXX/site/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip or /Users/XXX/XXX/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip.zip, and cannot find /Users/XXX/XXX/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip.ZIP, period.
May 7, 2024 at 2:02 AM #45388Chicharito
ParticipantAdditional info:
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
May 8, 2024 at 11:45 AM #45400Anh Tran
KeymasterCan you please share us how do you structure your plugin, and also the content of your
composer.json
(without the license key)?May 17, 2024 at 12:36 AM #45448Chicharito
ParticipantHi Tran,
Sorry for my late reply; I have had much on my plate lately.
I solved this by removing the composer.lock file, duh!
It seems that clearing the cache is not enough.My composer.json file looks like this:
{ "repositories":[ { "type": "composer", "url": "https://wpackagist.org" }, { "type": "composer", "url": "https://packages.metabox.io/XXXXXXXXXXXXXXXXX" } ], "require": { "wpackagist-plugin/meta-box": "^5", "wpackagist-plugin/mb-relationships": "^1.3", "wpackagist-plugin/meta-box-text-limiter": "dev-trunk", "meta-box/mb-admin-columns": "dev-master", "meta-box/mb-revision": "dev-master", "meta-box/mb-settings-page": "dev-master", "meta-box/meta-box-conditional-logic": "dev-master", "meta-box/meta-box-group": "dev-master", "meta-box/meta-box-include-exclude": "dev-master", "meta-box/meta-box-show-hide": "dev-master", "composer/installers": "^1" }, "extra": { "installer-paths": { "vendor/meta-box/{$name}": ["vendor:wpackagist-plugin", "vendor:meta-box"] } }, "autoload": { "files": [ "vendor/meta-box/meta-box/meta-box.php", "vendor/meta-box/mb-relationships/mb-relationships.php", "vendor/meta-box/meta-box-text-limiter/text-limiter.php", "vendor/meta-box/mb-admin-columns/mb-admin-columns.php", "vendor/meta-box/mb-revision/mb-revision.php", "vendor/meta-box/mb-settings-page/mb-settings-page.php", "vendor/meta-box/meta-box-conditional-logic/meta-box-conditional-logic.php", "vendor/meta-box/meta-box-group/meta-box-group.php", "vendor/meta-box/meta-box-include-exclude/meta-box-include-exclude.php", "vendor/meta-box/meta-box-show-hide/meta-box-show-hide.php" ] }, "config": { "allow-plugins": { "composer/installers": true } } }
You can close this now!
-
AuthorPosts
- You must be logged in to reply to this topic.