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

Updating image tag to 5.1.1 causes Mautic to throw an internal error #304

Open
amks1 opened this issue Nov 21, 2024 · 0 comments
Open

Updating image tag to 5.1.1 causes Mautic to throw an internal error #304

amks1 opened this issue Nov 21, 2024 · 0 comments

Comments

@amks1
Copy link

amks1 commented Nov 21, 2024

Mautic Series

5.1.x series

Mautic installed version

5.1.1

Way of installing

I'm using a Docker image from https://hub.docker.com/r/mautic/mautic

PHP version

What's in the image

What browsers are you seeing the problem on?

Chrome

What happened?

My installation is using docker compose.
I was using mautic/mautic:5-apache which was working well, and just updated the tag to mautic/mautic:5.1.1-apache.
The containers start up fine, but on opening the web page it shows:

Warning: require(/var/www/html/vendor/composer/../../docroot/app/AppTestKernel.php): Failed to open stream: No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 41

Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/composer/../../docroot/app/AppTestKernel.php' (include_path='.:/usr/local/lib/php') in /var/www/html/vendor/composer/autoload_real.php:41 Stack trace: #0 /var/www/html/vendor/composer/autoload_real.php(45): {closure}('7f9097acd45f80f...', '/var/www/html/v...') mautic/mautic#1 /var/www/html/vendor/autoload.php(25): ComposerAutoloaderInitbccd3ad3db7b670fdd12e172f6f4c035::getLoader() mautic/mautic#2 /var/www/html/docroot/autoload.php(13): require('/var/www/html/v...') mautic/mautic#3 /var/www/html/docroot/app/config/bootstrap.php(5): require('/var/www/html/d...') mautic/mautic#4 /var/www/html/docroot/index.php(9): require('/var/www/html/d...') mautic/mautic#5 {main} thrown in /var/www/html/vendor/composer/autoload_real.php on line 41

I also tried updating to mautic/mautic:5.1.0-apache, and it gives the same error.

How can we reproduce this issue?

Step 1: Clone the mautic/docker-mautic repo, edit the docker-compose.yml file to set the apache version mautic/mautic:5-apache and run docker compose up -d to install mautic. Check the website to see that it's working fine.
Step 2: Edit the docker-compose.yml to change the version to mautic/mautic:5.1.1-apache in the three containers.
Step 3: Run docker compose down && docker compose up -d to rebuild the containers. Go to the website, and it shows the error above.

Relevant log output

127.0.0.1 - - [21/Nov/2024:17:58:48 +0000] "GET / HTTP/1.1" 200 1195 "-" "curl/7.88.1"
[Thu Nov 21 17:58:53.492533 2024] [php:warn] [pid 22:tid 22] [client 127.0.0.1:41860] PHP Warning:  require(/var/www/html/vendor/composer/../../docroot/app/AppTestKernel.php): Failed to open stream: No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 41
[Thu Nov 21 17:58:53.493260 2024] [php:error] [pid 22:tid 22] [client 127.0.0.1:41860] PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/html/vendor/composer/../../docroot/app/AppTestKernel.php' (include_path='.:/usr/local/lib/php') in /var/www/html/vendor/composer/autoload_real.php:41\nStack trace:\n#0 /var/www/html/vendor/composer/autoload_real.php(45): {closure}('7f9097acd45f80f...', '/var/www/html/v...')\n#1 /var/www/html/vendor/autoload.php(25): ComposerAutoloaderInitbccd3ad3db7b670fdd12e172f6f4c035::getLoader()\n#2 /var/www/html/docroot/autoload.php(13): require('/var/www/html/v...')\n#3 /var/www/html/docroot/app/config/bootstrap.php(5): require('/var/www/html/d...')\n#4 /var/www/html/docroot/index.php(9): require('/var/www/html/d...')\n#5 {main}\n  thrown in /var/www/html/vendor/composer/autoload_real.php on line 41
127.0.0.1 - - [21/Nov/2024:17:58:53 +0000] "GET / HTTP/1.1" 200 1195 "-" "curl/7.88.1"


### Code of Conduct

- [X] I confirm that I have read and agree to follow this project's Code of Conduct

<br /><hr>
Care about this issue? Want to get it resolved sooner? If you are a <a href='https://www.mautic.org/become-a-member-of-mautic'>member of Mautic</a>, you can add some funds to the <a href='https://opencollective.com/mautic/projects/bounties'>Bounties Project</a> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs <a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'>here.</a>
@RCheesley RCheesley transferred this issue from mautic/mautic Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant