Error in final step: install-sampledata
pascal-linux opened this issue · 8 comments
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 /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
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
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 (96a2aa4) 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.