Error 500 Internal Server Error

GET https://metalica.zodii.ro/ro/custom-fields

Forwarded to ErrorController (d297a5)

Exceptions

Exception

Symfony\Component\HttpFoundation\Exception\ UnexpectedValueException

  1.     {
  2.         $whitelabel $this->entityManager->getRepository(Domain::class)
  3.             ->find($request->get('whitelabel'));
  4.         if (!$whitelabel || $whitelabel->getType() !== DomainType::CustomFields) {
  5.             throw new UnexpectedValueException();
  6.         }
  7.         return $whitelabel;
  8.     }
  9. }
CustomFieldsController->getCustomFieldsDomain(object(Request)) in src/Controller/Whitelabel/CustomFieldsController.php (line 39)
  1.     #[Route('/{_locale}/custom-fields'name'custom_fields_events')]
  2.     #[Route('{w_path}/{_locale}/custom-fields'name'custom_fields_events_path')]
  3.     public function index(Request $requestWhitelabelCustomFieldsOrder $orderToBasket): Response
  4.     {
  5.         $whitelabel $this->getCustomFieldsDomain($request);
  6.         $form $this->createForm(CustomFieldsFormType::class);
  7.         $form->handleRequest($request);
  8.         if ($form->isSubmitted()) {
  9.             $data $form->getData();
  1.         $this->dispatcher->dispatch($eventKernelEvents::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($eventKernelEvents::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.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  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 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/marius/dabilet/vendor/autoload_runtime.php') in public/index.php (line 14)
  1.     newrelic_set_appname('daBilet.ro');
  2. }
  3. use App\Kernel;
  4. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     if ($context['APP_ENV'] === 'prod') {
  7.         // see https://symfony.com/doc/current/setup/file_permissions.html

Logs

Level Channel Message
INFO 20:17:34 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "b91e49"
    },
    "request_uri": "https://metalica.zodii.ro/_profiler/b91e49",
    "method": "GET"
}
INFO 20:17:34 doctrine Connecting with parameters {params}
{
    "params": {
        "use_savepoints": true,
        "driver": "pdo_mysql",
        "idle_connection_ttl": 600,
        "host": "10.1.8.104",
        "port": 3306,
        "user": "dabilet-app",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": [],
        "dbname": "dabilet",
        "charset": "utf8"
    }
}
DEBUG 20:17:34 doctrine Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.domain AS domain_4, t0.path AS path_5, t0.locale AS locale_6, t0.amount AS amount_7, t0.currency AS currency_8, t0.type AS type_9, t0.status AS status_10, t0.custom_css AS custom_css_11, t0.background_image AS background_image_12, t0.header_image AS header_image_13, t0.created_at AS created_at_14, t0.updated_at AS updated_at_15 FROM whitelabel_domain t0 WHERE t0.domain = ? AND t0.status = ? LIMIT 1 (parameters: {params}, types: {types})

                            
DEBUG 20:17:34 doctrine Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.domain AS domain_4, t0.path AS path_5, t0.locale AS locale_6, t0.amount AS amount_7, t0.currency AS currency_8, t0.type AS type_9, t0.status AS status_10, t0.custom_css AS custom_css_11, t0.background_image AS background_image_12, t0.header_image AS header_image_13, t0.created_at AS created_at_14, t0.updated_at AS updated_at_15 FROM whitelabel_domain t0 WHERE t0.domain = ? AND t0.status = ? LIMIT 1 (parameters: {params}, types: {types})

                            
DEBUG 20:17:34 doctrine Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.domain AS domain_4, t0.path AS path_5, t0.locale AS locale_6, t0.amount AS amount_7, t0.currency AS currency_8, t0.type AS type_9, t0.status AS status_10, t0.custom_css AS custom_css_11, t0.background_image AS background_image_12, t0.header_image AS header_image_13, t0.created_at AS created_at_14, t0.updated_at AS updated_at_15 FROM whitelabel_domain t0 WHERE t0.domain = ? AND t0.status = ? LIMIT 1 (parameters: {params}, types: {types})

                            

Stack Trace

UnexpectedValueException
Symfony\Component\HttpFoundation\Exception\UnexpectedValueException:

  at src/Controller/Whitelabel/CustomFieldsController.php:217
  at App\Controller\Whitelabel\CustomFieldsController->getCustomFieldsDomain(object(Request))
     (src/Controller/Whitelabel/CustomFieldsController.php:39)
  at App\Controller\Whitelabel\CustomFieldsController->index(object(Request), object(WhitelabelCustomFieldsOrder))
     (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:182)
  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:29)
  at require_once('/home/marius/dabilet/vendor/autoload_runtime.php')
     (public/index.php:14)