Closed pascal-linux closed 6 years ago
It looks the sample data of Magento 2.2.2 doesn't work with Magento 2.2.2, although the error message looks weird to me. I checked the file, the class Symfony\Polyfill\Php72\Php72 was actually there.
For now, you should use 2.2.1 if you want to use the sample data. I tested 2.2.1, it works fine.
On Sun, Jan 7, 2018 at 3:22 AM, pascal-linux notifications@github.com wrote:
I am using docker on Win10 Pro (which works without Problems) and wanted to install your Magento2 Containers (Version 2.2.2). I downloaded the git and followed the instructions. Everything works well until the final step:
Here are the last lines on my command prompt: ....
- Installing magento/module-sales-sample-data (100.2.1): Downloading (100%) Package sjparkinson/static-review is abandoned, you should avoid using it. Use phpro/grumphp instead. Writing lock file Generating autoload files
Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace:
0 /var/www/html/vendor/composer/autoload_real.php(70): require()
1 https://github.com/alexcheng1982/docker-magento2/issues/1
/var/www/html/vendor/composer/autoload_real.php(60): composerRequire8c2811ee3eb8dbe884f05970a3bc19a1('25072dd6e247008...', '/var/www/html/v...')
2 https://github.com/alexcheng1982/docker-magento2/issues/2
/var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit8c2811ee 3eb8dbe884f05970a3bc19a1::getLoader()
3 https://github.com/alexcheng1982/docker-magento2/pull/3
/var/www/html/app/autoload.php(30): include('/var/www/html/v...')
4 https://github.com/alexcheng1982/docker-magento2/issues/4
/var/www/html/app/bootstrap.php(30): require_once('/var/www/html/a...')
5 https://github.com/alexcheng1982/docker-magento2/issues/5
/var/www/html/bin/magento(14): require('/var/www/html/a...')
6 https://github.com/alexcheng1982/docker-magento2/issues/6 {main}
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29
Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace:
0 /var/www/html/vendor/composer/autoload_real.php(70): require()
1 https://github.com/alexcheng1982/docker-magento2/issues/1
/var/www/html/vendor/composer/autoload_real.php(60): composerRequire8c2811ee3eb8dbe884f05970a3bc19a1('25072dd6e247008...', '/var/www/html/v...')
2 https://github.com/alexcheng1982/docker-magento2/issues/2
/var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit8c2811ee 3eb8dbe884f05970a3bc19a1::getLoader()
3 https://github.com/alexcheng1982/docker-magento2/pull/3
/var/www/html/app/autoload.php(30): include('/var/www/html/v...')
4 https://github.com/alexcheng1982/docker-magento2/issues/4
/var/www/html/app/bootstrap.php(30): require_once('/var/www/html/a...')
5 https://github.com/alexcheng1982/docker-magento2/issues/5
/var/www/html/bin/magento(14): require('/var/www/html/a...')
6 https://github.com/alexcheng1982/docker-magento2/issues/6 {main}
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29
What do I wrong? Should I test your older versions??
Thanks! PAscal
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexcheng1982/docker-magento2/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHgEH-v5-pxhCSn14CkQ_E_bS0szmaWks5tH4GkgaJpZM4RVUyJ .
-- Regards Alex Cheng
Still the same Problem (I just adapted the Dockerfile from "ENV MAGENTO_VERSION 2.2.2" to "ENV MAGENTO_VERSION 2.2.1").
Still the same error message `Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace:
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29`
You are right - the file "./symfony/polyfill-php72/Php72.php" exists - maybe missing environment variables?
Thanks! Pascal
You don't need to change the Dockerfile, just use the tag 2.2.1. Update the docker-compose.yml file to use the alexcheng/magento2:2.2.1 image.
You can also use other tags: 2.2.0 or 2.1.9. See all tags here ( https://hub.docker.com/r/alexcheng/magento2/tags/)
On Wed, Jan 10, 2018 at 12:04 AM, pascal-linux notifications@github.com wrote:
Still the same Problem (I just adapted the Dockerfile from "ENV MAGENTO_VERSION 2.2.2" to "ENV MAGENTO_VERSION 2.2.1").
Still the same error message Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace: #0 /var/www/html/vendor/composer/autoload_real.php(70): require() #1 /var/www/html/vendor/composer/autoload_real.php(60): composerRequire8c2811ee3eb8dbe884f05970a3bc19a1('25072dd6e247008...', '/var/www/html/v...') #2 /var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit8c2811ee3eb8dbe884f05970a3bc19a1::getLoader() #3 /var/www/html/app/autoload.php(30): include('/var/www/html/v...') #4 /var/www/html/app/bootstrap.php(30): require_once('/var/www/html/a...')
5 /var/www/html/bin/magento(14): require('/var/www/html/a...') #6 {main}
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29
You are right - the file "./symfony/polyfill-php72/Php72.php" exists - maybe missing environment variables?
Thanks! Pascal
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexcheng1982/docker-magento2/issues/11#issuecomment-356252852, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHgEJo_Yg8ioYhJfxQJlPCrUylfjuW_ks5tI0etgaJpZM4RVUyJ .
-- Regards Alex Cheng
It works perfectly now! Thanks a lot!!
Close as a Magento issue.
@alexcheng1982 Sorry to wake up a closed thread, but I downloaded a zip of master today (96a2aa4b1f52567dee50398c79f81a959492eb0d) and tried the install-sampledata
command and it worked without a problem. Maybe Magento fixed the issue :)
@alexcheng1982 hi, so with the comment of @michaellopez , are the sample data ok now ? Thanks
@alexcheng1982 This workaround no longer works as 2.2.1 doesn't include the bcmath extension.
I am using docker on Win10 Pro (which works without Problems) and wanted to install your Magento2 Containers (Version 2.2.2). I downloaded the git and followed the instructions. Everything works well until the final step:
Here are the last lines on my command prompt: ....
Writing lock file Generating autoload files
Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace:
0 /var/www/html/vendor/composer/autoload_real.php(70): require()
1 /var/www/html/vendor/composer/autoload_real.php(60): composerRequire8c2811ee3eb8dbe884f05970a3bc19a1('25072dd6e247008...', '/var/www/html/v...')
2 /var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit8c2811ee3eb8dbe884f05970a3bc19a1::getLoader()
3 /var/www/html/app/autoload.php(30): include('/var/www/html/v...')
4 /var/www/html/app/bootstrap.php(30): require_once('/var/www/html/a...')
5 /var/www/html/bin/magento(14): require('/var/www/html/a...')
6 {main}
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29
Fatal error: Uncaught Error: Class 'Symfony\Polyfill\Php72\Php72' not found in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php:29 Stack trace:
0 /var/www/html/vendor/composer/autoload_real.php(70): require()
1 /var/www/html/vendor/composer/autoload_real.php(60): composerRequire8c2811ee3eb8dbe884f05970a3bc19a1('25072dd6e247008...', '/var/www/html/v...')
2 /var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit8c2811ee3eb8dbe884f05970a3bc19a1::getLoader()
3 /var/www/html/app/autoload.php(30): include('/var/www/html/v...')
4 /var/www/html/app/bootstrap.php(30): require_once('/var/www/html/a...')
5 /var/www/html/bin/magento(14): require('/var/www/html/a...')
6 {main}
thrown in /var/www/html/vendor/symfony/polyfill-php72/bootstrap.php on line 29
What do I wrong? Should I test your older versions??
Thanks! PAscal