-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute (9) unzip -qq -o 'web/app/plugins/wp-all-import-pro// ... #27
Comments
Hey @jesstucker thanks for creating this issue, and I'm glad you find this plugin useful! :) A few things to test:
I've faced issues with WP All Import / Export before - its really fussy |
Hey @junaidbhura,
{
["edd_action"]=>
string(11) "get_version"
["license"]=>
string(32) "(redacted: but matches license)"
["item_name"]=>
string(13) "WP All Import"
["url"]=>
string(161) "https://www.wpallimport.com/index.php?eddfile=<redacted>&ttl=<redacted>&file=<redacted>&token=<redacted>"
["version"]=>
string(5) "4.6.5"
} When I send these same values in postman, I do seem to get a
I discovered that if I modify the $response = json_decode( $http->post( 'https://www.wpallimport.com', array(
'edd_action' => 'get_version',
'license' => $license,
'item_name' => $name,
'url' => $url,
'version' => $this->version, # <---- removing this seems to successfully download/unzip
) ), true ); Also, this is a little crazy making, but I just reprovisioned a local environment, and it seems to work, which I cannot make any sense of! |
Hey @jesstucker hmm that is really weird. If reprovisioning a local environment works, then there must be some obscure configuration in your existing environment that must be preventing it from working. I can confirm that the exact same versions of All Import and Export work for me - both locally on a Mac and in an Ubuntu CI environment Can you run |
Hey @junaidbhura, Just ran I can't for the life of me understand why removing the I suppose if it comes down to it, maybe I can fork your repo and modify, I do sincerely appreciate your work!!! Thanks, |
@jesstucker Do you use https://github.com/hirak/prestissimo ? This plugin is incompatible with it |
Just checked the dependencies, and don't see any use of prestissimo. I did try updating to composer v2 and was having the same zip download error. Just as a test I tried overwriting this line with a hardcoded url download link (available on wp-all-import site: https://www.wpallimport.com/checkout/purchase-confirmation/?payment_key=REDACTED) that follows this link formatting:
And was able to successfully download and install the packages. So then I tried a hybrid approach of your repo and #composer.json
...
{
"type": "package",
"package": {
"name": "junaidbhura/wp-all-import-pro",
"version": "4.6.5",
"type": "wordpress-muplugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com/index.php?eddfile={redacted}&ttl={redacted}&file={redacted}&token={redacted}"
},
"require": {
"composer/installers": "^1.4",
"ffraenz/private-composer-installer": "^5.0"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wp-all-export-pro",
"version": "1.6.4",
"type": "wordpress-muplugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com/index.php?eddfile={redacted}&ttl={redacted}&file={redacted}&token={redacted}"
},
"require": {
"composer/installers": "^1.4",
"ffraenz/private-composer-installer": "^5.0"
}
}
}
],
...
"require": {
"junaidbhura/wp-all-import-pro": "*",
"junaidbhura/wp-all-export-pro": "*"
},
... Still not really sure of anything 😅 Thanks! |
I've been facing a similar issue too. At first I thought the problem was caused by the fact that zip was named But then I tried to replicate the problem to give you more information about it but I was able to run Between my first and second try, I modified the permissions of my directories by running some So, I don't know what you can do with those information, hope it'll help. |
So I'm trying to achieve the same with Composer 2 and Sage 9, but how can I get this I tried with this url as the WP_ALL_EXPORT_PRO_URL:
But it's not working, getting this error:
Any idea where to get this magical url? |
Hey what's up @Twansparant, I got this URL by logging into my All Import Pro account (customer portal), and finding the "special" url available for download: |
Hi @jesstucker, thanks for your reply! |
Hello everyone, are you sure you're not using Prestissimo? https://github.com/hirak/prestissimo . Its a global package, so it won't show up in your Just in case, you can try removing it by running: |
Yes, in my case 100% sure since I had the same problems with gravityforms packages.
In my composer.json {
"type": "package",
"package": {
"name": "junaidbhura/gravityforms",
"version": "2.5.5",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.gravityforms.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/gravityformsmailchimp",
"version": "4.9",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.gravityforms.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wp-all-export-pro",
"version": "1.6.5",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
},
{
"type": "package",
"package": {
"name": "junaidbhura/wpae-user-add-on-pro",
"version": "1.0.4",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
} And in my "require": {
"php": ">=7.1",
"composer/installers": "^1.9",
"vlucas/phpdotenv": "^4.1",
"oscarotero/env": "^2.1",
"junaidbhura/wp-all-export-pro": "*",
"junaidbhura/wpae-user-add-on-pro": "*",
"junaidbhura/gravityforms": "*",
"junaidbhura/gravityformsmailchimp": "*"
} When I run
If I try and install the |
hey @Twansparant the |
Hi @junaidbhura, thanks for your reply!
Also I didn't have to register my domain anywhere when purchasing my license, so what is this url used for in the first place? |
That URL is used to identify your site to WP All Export. It simulates when you update the plugin through the WP Admin. I don't think you have to register the URL anywhere. Stupid question but, do you have a valid license key? Also can you try the license key without quotes in the .env file? |
Ok check. |
Hmm this is weird. I've come across some weirdness with WP All Import / Export based on version numbers. Can you try a different version number like I use this on a lot of websites, and it has been tested on Mac, Linux and Windows, and works fine! |
Just tried it with setting the version as |
I just purchased the whole suite incl. import pro add-ons, but the same error happens:
Still not able to reproduce this? |
Hey @Twansparant a fix for WP All Import / Export add-ons was recently released. Are you using the latest version of this plugin? It looks like the issue may be different - but can you try to see if updating the plugin helps? |
I already am using all the latest versions of the plugin and the add-ons. |
I'm here to confirm the issue, I have the same behaviour than @jesstucker . When i remove 'version' or set another version like 4.4.4 i have the downlaod_link with the package v4.6.9. I think the problem is WPAI side. :) |
Hey @Twansparant I mean the latest version of THIS plugin? https://github.com/junaidbhura/composer-wp-pro-plugins/releases/tag/1.2.1 @vaandefanel What OS are you on? Are you also using the latest version of this plugin? |
Ah sorry, yes also using latest version 1.2.1 of your plugin! |
@junaidbhura I'm using version 1.2.1 on WSL Ubuntu on Windows. I confirmed the error with api call with Insomnia (postman alternative) on Windows. The WPAI licence is a Bundle Elite. |
Getting the same error message as the OP here @junaidbhura, using composer-wp-pro-plugins 1.2.1 on Mac, also with the Bundle Elite WPAI license. I made sure to try all of the above solutions. Only adding the full link in the url instead of https://www.wpallimport.com like shown in #27 (comment) works fine, even without requiring ffraenz/private-composer-installer, like so:
The plugin folders seem to appear in the the plugins directory, but will disappear once the installer fails. Thanks for the great work! |
Hey @Twansparant I just re-read one of your earlier comments. WP All Import and Export use different keys. Are you sure you're using the right key for both of them? Edit: If you're using both All Import and Export, you need to add both keys:
@vaandefanel @jdraserschieb can you point me to the Bundle Elite license? I don't see it on their website? |
Sorry for the confusion @junaidbhura, I remembered the name wrong, the license is called “Import + Export Pro Package”. My config file looks like this:
ACF and Polylang work just fine with the |
Yes I'm sure of that, I do have 2 separate license keys for both indeed. |
Hi @Twansparant is this still an issue with the latest Composer? |
Jup, I updated my local composer to version 2.3.5 and am still getting this error when running Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Downloading junaidbhura/wp-all-export-pro (1.7.5)
- Downloading junaidbhura/wp-all-import-pro (4.7.2)
- Installing junaidbhura/wp-all-export-pro (1.7.5): Extracting archive
- Installing junaidbhura/wp-all-import-pro (4.7.2): Extracting archive
Failed to extract junaidbhura/wp-all-export-pro: (9) '/usr/bin/unzip' -qq '/path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a' -d '/path/to/my/project/site/vendor/composer/1a60b100'
[/path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a]
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.
unzip: cannot find zipfile directory in one of /path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a or
/path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a.zip, and cannot find /path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a.ZIP, period.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Install of junaidbhura/wp-all-export-pro failed
Failed to extract junaidbhura/wp-all-import-pro: (9) '/usr/bin/unzip' -qq '/path/to/my/project/site/vendor/composer/tmp-3f27b8f0f24a0760162c76120cab3d77' -d '/path/to/my/project/site/vendor/composer/9ed93e8c'
[/path/to/my/project/site/vendor/composer/tmp-3f27b8f0f24a0760162c76120cab3d77]
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.
unzip: cannot find zipfile directory in one of /path/to/my/project/site/vendor/composer/tmp-3f27b8f0f24a0760162c76120cab3d77 or
/path/to/my/project/site/vendor/composer/tmp-3f27b8f0f24a0760162c76120cab3d77.zip, and cannot find /path/to/my/project/site/vendor/composer/tmp-3f27b8f0f24a0760162c76120cab3d77.ZIP, period.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Install of junaidbhura/wp-all-import-pro failed
0 [--->------------------------]
In ZipDownloader.php line 209:
'/path/to/my/project/site/vendor/composer/tmp-8faf5dafcf7502ada78bbf920af3d78a' is not a zip archive.
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...] I still don't know why I'm the only one with this problem? {
"type": "package",
"package": {
"name": "junaidbhura/wp-all-export-pro",
"version": "1.7.5",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.wpallimport.com/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
}, Also still not sure what to fill in for the I tried with my local test domain, localhost and leaving it empty, but all with same result. Any ideas? |
Just want to add that I'm having the same issue as @Twansparant. As far as I know I've configured everything correctly. |
Hey @Twansparant @jesstucker can you check if the new version |
Hi @junaidbhura, I have updated to version 1.4.1 but unfortunately I'm still getting the same error: Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Downloading junaidbhura/wp-all-export-pro (1.8.0)
- Downloading junaidbhura/wp-all-import-pro (4.7.6)
- Installing junaidbhura/wp-all-export-pro (1.8.0): Extracting archive
- Installing junaidbhura/wp-all-import-pro (4.7.6): Extracting archive
0/2 [>---------------------------] 0% Failed to extract junaidbhura/wp-all-export-pro: (9) '/usr/bin/unzip' -qq '/path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f' -d '/path/to/my/project/site/vendor/composer/11745059'
[/path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f]
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.
unzip: cannot find zipfile directory in one of /path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f or
/path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f.zip, and cannot find /path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f.ZIP, period.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Install of junaidbhura/wp-all-export-pro failed
Failed to extract junaidbhura/wp-all-import-pro: (9) '/usr/bin/unzip' -qq '/path/to/my/project/site/vendor/composer/tmp-e6f727256f19f306475879df533fe197' -d '/path/to/my/project/site/vendor/composer/db24defe'
[/path/to/my/project/site/vendor/composer/tmp-e6f727256f19f306475879df533fe197]
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.
unzip: cannot find zipfile directory in one of /path/to/my/project/site/vendor/composer/tmp-e6f727256f19f306475879df533fe197 or
/path/to/my/project/site/vendor/composer/tmp-e6f727256f19f306475879df533fe197.zip, and cannot find /path/to/my/project/site/vendor/composer/tmp-e6f727256f19f306475879df533fe197.ZIP, period.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Install of junaidbhura/wp-all-import-pro failed
2/2 [============================] 100%
In ZipDownloader.php line 207:
'/path/to/my/project/site/vendor/composer/tmp-77f32b53af2b876a93a2621702118f6f' is not a zip arch
ive.
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...] Somehow my WP All Import add-ons are installed correctly? Thanks! |
@Twansparant Can you try |
Just cleared the cache and did a clean install: |
That's unfortunate! If someone can help me replicate this issue, I'll be able to help resolve and close this. |
I'm experiencing the same issue. I'm running composer 2.3.5
|
Having the same issue in a Bedrock/Sage setup. @junaidbhura I'm happy to give you access to the private repo that should enable you to recreate the issue |
Thanks @arnespremberg - definitely don't want access to your private repo - but could you give me a detailed description of the environment you are running on, which environments you've tested this on, and can you add your composer.json file here? |
@junaidbhura I've run into this same problem and have narrowed it down a bit more. I tested the API call via Postman and it was working fine, as did the PHP it generated with cURL. So I slowly rebuilt the same request in the plugin and discovered the difference is that Postman is defaulting to sending the params of the request as query string params in the URL rather than in the request body. A POST without the query string params in the URL will fail. Or, a simple GET request works fine, too. # GET request works
curl --location --GET "https://www.wpallimport.com" -d edd_action=get_version \
-d license=<INSERT> -d item_name=WP+All+Import -d version=4.7.8 \
-d url= | jq "{download_link}"
# POST request fails
curl --location --request POST "https://www.wpallimport.com" -d edd_action=get_version \
-d license=<INSERT> -d item_name=WP+All+Import -d version=4.7.8 \
-d url= | jq "{download_link}" This is on macOS 12.6.1, but I also ran it in my app container - Lando's Pantheon app container (php:8.0-fpm-bullseye, Debian based). EDD's docs do say the requests can be GET or POST, so perhaps this could be fixed by adding a new https://easydigitaldownloads.com/docs/software-licensing-api/ I'm happy to submit a PR for that! |
Hey @jessedyck thanks for looking into this! Sure, a PR would be great if you could! |
Looks like WP All Import has started using Cloudflare recently which causes downloads from the command line to fail :( |
@Twansparant is this still an issue for you? |
Wow, I think it's working now! At least in my local vagrant box. I'll report back when I deployed! EDIT: Deploys are also working now! Brilliant! |
Excellent thanks @Twansparant ! Closing this issue at long last :) |
Hey all,
Trying to use the all import/export pro plugin part of this.
Seems that I am getting a similar error as the issues referenced below (and commented in issue 18):
#18
#14
#1
Screenshots of my error:
Text version:
I noticed that some previous fixes had occurred on
Installer.php
but I must be honest in admitting I am terribly new to composer / wp / etc... and not really sure where / what to inspect to catch the error.@junaidbhura asked me to post my versions in the prior post; here they are again:
composer.json
:Perhaps I will also add that I am using Bedrock / Roots / Trellis / Sage 10
Also my assumption is that I am using the 1.2.0 version of this plugin (composer-wp-pro-plugins)
Love what you're doing, managing these paid plugins is a headache!
Sincerely,
Jess
The text was updated successfully, but these errors were encountered: