-
Notifications
You must be signed in to change notification settings - Fork 7
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
GeoIP Configuration "Download Library" button fails on Magento 2.3.1 #3
Comments
Can't download file. Please try again! RecursiveDirectoryIterator::__construct(): Unable to find the wrapper "phar" - did you forget to enable it when you configured PHP? |
Also experiencing this on 2.2.8 |
Please try to edit the unregister 'phar' to You can remove the # symbol after downloading successfully. |
Hi @DrakeJack , since Magento had decide to unregister it in there code, I mean if we could fix it from the module code? As I mentioned, I just tried Zippy, and it works fine for me. |
The latest version of Zippy didn't work for me. I just used |
You can tag 2.3.2 with the same issue. |
can confirm problem on 2.3.2 with 1.0.4 |
using below code stream_wrapper_restore('phar'); just above line# 95 [$phar = new \PharData($path . '/GeoLite2-City.tar.gz');] of file Controller/Adminhtml/System/Config/Geoip.php will solve the problem. I want to create pull request for this change but unfortunately, this module asks for 2 other modules Mageplaza_Core & Mageplaza_Backend to run and I couldn’t find those modules. |
It fails when unzipping the downloaded
GeoLite2-City.tar.gz
because thephar
wrapper is unregistered in the beginning of/app/bootstrap.php
script. The code snippet is below:The text was updated successfully, but these errors were encountered: