Error 500 in the working docker container

I am using slimframwork 3 application for laradock (nginx, mariadb, phpfpm, php 5.6), so I made a silly syntax error:

$view->addExtension(new \Slim\Views\TwigExtension(
$container->router,
$container->request->getUri(),
));

the comma after getUri () gave me a 500 error on chrome, and that was a disappointment, so I tried my wamp application on windows, and I get:

Parse error: syntax error, unexpected ')' in C: \ wamp64 \ www \ app \ bootstrap \ app.php on line 21

why I had a 500 error, not having a clue about what was wrong.

PS I set displayErrorDetails to true

+4
source share
1 answer

Phil critic who solved this problem.

, laradock, , , php-fpm:

docker logs -f <your container>

"display_errors = On" laradock/php-fpm/laravel.ini 500.

+2

Source: https://habr.com/ru/post/1688190/


All Articles