Skip to content
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

Error in final step: install-sampledata #11

Closed
pascal-linux opened this issue Jan 6, 2018 · 8 comments
Closed

Error in final step: install-sampledata #11

pascal-linux opened this issue Jan 6, 2018 · 8 comments

Comments

@pascal-linux
Copy link

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

@alexcheng1982
Copy link
Owner

alexcheng1982 commented Jan 8, 2018 via email

@pascal-linux
Copy link
Author

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

@alexcheng1982
Copy link
Owner

alexcheng1982 commented Jan 9, 2018 via email

@pascal-linux
Copy link
Author

It works perfectly now!
Thanks a lot!!

@alexcheng1982
Copy link
Owner

Close as a Magento issue.

@michaellopez
Copy link

@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 :)

@nelero
Copy link

nelero commented Apr 6, 2019

@alexcheng1982 hi, so with the comment of @michaellopez , are the sample data ok now ?
Thanks

@ahinkle
Copy link

ahinkle commented Jan 6, 2021

@alexcheng1982 This workaround no longer works as 2.2.1 doesn't include the bcmath extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants