Exceptions
Exception
Symfony\Component\HttpFoundation\Exception\ UnexpectedValueException
in
src/Controller/Whitelabel/CustomFieldsController.php
(line 217)
{$whitelabel = $this->entityManager->getRepository(Domain::class)->find($request->get('whitelabel'));if (!$whitelabel || $whitelabel->getType() !== DomainType::CustomFields) {throw new UnexpectedValueException();}return $whitelabel;}}
CustomFieldsController->getCustomFieldsDomain(object(Request))
in
src/Controller/Whitelabel/CustomFieldsController.php
(line 39)
#[Route('/{_locale}/custom-fields', name: 'custom_fields_events')]#[Route('{w_path}/{_locale}/custom-fields', name: 'custom_fields_events_path')]public function index(Request $request, WhitelabelCustomFieldsOrder $orderToBasket): Response{$whitelabel = $this->getCustomFieldsDomain($request);$form = $this->createForm(CustomFieldsFormType::class);$form->handleRequest($request);if ($form->isSubmitted()) {$data = $form->getData();
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
newrelic_set_appname('daBilet.ro');}use App\Kernel;require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';return function (array $context) {if ($context['APP_ENV'] === 'prod') {// see https://symfony.com/doc/current/setup/file_permissions.html
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 21:34:26 | 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?panel=exception&type=request",
"method": "GET"
}
|
| INFO 21:34:26 | 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 21:34:26 | 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 21:34:26 | 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 21:34:26 | 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)
|