contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
83 stars 33 forks source link

Webside shows white screen after CM Error 500 and app.CRITICAL: Uncaught PHP Exception Symfony #683

Closed Jens1204 closed 2 years ago

Jens1204 commented 2 years ago

Hello, after installing the Contao extention newslinklist, error 500 occured in the Contao Manger (CM) and my website only shows a white screen after calling it. Does anyone have an idea, how to handle this problem?

The CM is totaly blocked, Back-End-Loggin didn't work, the cache is cleared (var/prod + var/dev deleted) --> no change.

This is the error log createt by contao manger while checking the Composer-Environment on the host server:

_... app.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Compile Error: require(): Failed opening required '/homepages/13/d898679681/htdocs/www.mywebsite.info/vendor/symfony/deprecation-contracts/function.php' (include_path='.:/usr/lib/php7.4')" at phar:///homepages/13/d898679681/htdocs/www.mywebsite.info/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php line 1422 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Compile Error: require(): Failed opening required '/homepages/13/d898679681/htdocs/www.mywebsite.info/vendor/symfony/deprecation-contracts/function.php' (includepath='.:/usr/lib/php7.4') at phar:///homepages/13/d898679681/htdocs/www.mywebsite.info/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php:1422)"}

And this the html-code behind the white screen in the Firefox Inspector: <html>; <head></head>; <body cz-shortcut-listen="true">; </body>; </html>

The CM "Error 500" Contao-Manger-Error500

My white screen webside :-( Web-Seite_Weiß

Jens1204 commented 2 years ago

I did find the bug: The repuired path was not existing in my directory but there was a second smyfony folder located here: ... ./contao-manager/cache/files/symfony/deprecation-contracts. But the content is a zip flie. So I created manually the required directory ./vendor/symfony/deprecation-contracts/ and copied the extracted files into it.

I started the Contao-Manger again, which deteceted new errors, but now there was an automatic repair option available. After executing this repair option a new checking procedure of the CM was successful and the Website works.