Error 500 Internal Server Error

GET https://voyagespresse.com/_configurator/final

Forwarded to ErrorController (a13509)

Exceptions

Warning: Undefined property: App\Controller\ZFrontController::$pagesRepo

Exception

ErrorException

Show exception properties
ErrorException {#635
  #severity: E_WARNING
}
  1. {
  2. // 1. récupère l url
  3. $url = $this->recupUrl($slug, $slug2, $slug3, $slug4, $slug5);
  4. // 2. récupère la page d accueil
  5. $pages = $this->pagesRepo->findHomePage();
  6. // 3. récupère toutes les homePages
  7. $homePage = $this->pagesRepo->findAllHomePage();
  8. dump($homePage);
in vendor/symfony/http-kernel/HttpKernel.php -> front_index (line 183)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/voyagen/www/frontOffice/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
DEBUG 13:29:37 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/voyagen/www/frontOffice/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 318,
        "trace": [
            {
                "file": "/home/voyagen/www/frontOffice/vendor/symfony/debug-bundle/DebugBundle.php",
                "line": 35,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 39
    }
}
INFO 13:29:37 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://voyagespresse.com/_profiler/latest?ip=43.155.157.239&type=request",
    "method": "GET"
}
INFO 13:29:37 deprecation User Deprecated: Support for MySQL < 8 is deprecated and will be removed in DBAL 5 (AbstractMySQLDriver.php:75 called by AbstractDriverMiddleware.php:32, https://github.com/doctrine/dbal/pull/6343, package doctrine/dbal)
{
    "exception": {}
}

Stack Trace

ErrorException
ErrorException:
Warning: Undefined property: App\Controller\ZFrontController::$pagesRepo

  at src/Controller/ZFrontController.php:186
  at App\Controller\ZFrontController->front_index('_configurator', 'final', '', '', '')
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:191)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/home/voyagen/www/frontOffice/vendor/autoload_runtime.php')
     (public/index.php:5)