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

Losing Magento configuration after docker-compose down #65

Open
pmsteil opened this issue Aug 26, 2018 · 2 comments
Open

Losing Magento configuration after docker-compose down #65

pmsteil opened this issue Aug 26, 2018 · 2 comments

Comments

@pmsteil
Copy link

pmsteil commented Aug 26, 2018

Hello, this may just be a newbie question - been messing with this for 3 days.

I can get Magento 2 up and running with this package on my MacOS running High Sierra v10.13.6, but then after a while, or after I ./stop and ./start the docker instances, something goes wrong with my Magento configuration and I end up with these errors on the screen (and nothing else):

`Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '/app/magento-vars.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0`

I have even tried using docker commit in another terminal window, but then when I stop and start or docker-compose down and up the same thing happens. HELP! :)

patrick

@pmsteil
Copy link
Author

pmsteil commented Aug 28, 2018

I had someone help me with this issue. What we did to fix this was to comment out this line in the /php.ini file of the magento install we were using:

;auto_prepend_file = /app/magento-vars.php

Just FYI for anyone facing this issue

@underser
Copy link

You can just copy magento-vars.php to /app directory, or correct that line in /php.ini

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

2 participants