Exceptions

"App\Entity\Product" object not found by "Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver".

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#3193
  -statusCode: 404
  -headers: []
}
  1. $object = null;
  2. }
  3. }
  4. if (null === $object && !$argument->isNullable()) {
  5. throw new NotFoundHttpException($options->message ?? (\sprintf('"%s" object not found by "%s".', $options->class, self::class).$message));
  6. }
  7. return [$object];
  8. }
  1. public function resolve(Request $request, ArgumentMetadata $argument): iterable
  2. {
  3. $method = $this->inner::class.'::'.__FUNCTION__;
  4. $this->stopwatch->start($method, 'controller.argument_value_resolver');
  5. yield from $this->inner->resolve($request, $argument);
  6. $this->stopwatch->stop($method);
  7. }
  8. }
  1. continue;
  2. }
  3. try {
  4. $count = 0;
  5. foreach ($resolver->resolve($request, $metadata) as $argument) {
  6. ++$count;
  7. $arguments[] = $argument;
  8. }
  9. } catch (NearMissValueResolverException $e) {
  10. $valueResolverExceptions[] = $e;
  1. public function getArguments(Request $request, callable $controller, ?\ReflectionFunctionAbstract $reflector = null): array
  2. {
  3. $e = $this->stopwatch->start('controller.get_arguments');
  4. try {
  5. return $this->resolver->getArguments($request, $controller, $reflector);
  6. } finally {
  7. $e->stop();
  8. }
  9. }
  10. }
in vendor/symfony/http-kernel/HttpKernel.php -> getArguments (line 175)
  1. $event = new ControllerEvent($this, $controller, $request, $type);
  2. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
  3. $controller = $event->getController();
  4. // controller arguments
  5. $arguments = $this->argumentResolver->getArguments($request, $controller, $event->getControllerReflector());
  6. $event = new ControllerArgumentsEvent($this, $event, $arguments, $request, $type);
  7. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  8. $controller = $event->getController();
  9. $arguments = $event->getArguments();
  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. {
  2. $request = $this->container->get('request_stack')->getCurrentRequest();
  3. $path['_controller'] = $controller;
  4. $subRequest = $request->duplicate($query, null, $path);
  5. return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
  6. }
  7. /**
  8. * Returns a RedirectResponse to the given URL.
  9. *
AbstractController->forward() in src/Controller/StaticPageController.php (line 927)
  1. if (!$staticPage instanceof StaticPage) {
  2. if ($this->getParameter('app_code') === 'OPR' && current(explode('/', $path)) == 'blog') {
  3. return $this->forward('App\Controller\OpenPrintBlogController::blog', ['request'=> $request]);
  4. }
  5. return $this->forward('App\Controller\ProductController::product', ['code' => $path]);
  6. }
  7. if (!$staticPage->isPublished()) {
  8. $this->addFlash(AlertMessage::TYPE_WARNING, $this->translator->trans('front.error_page.page_not_found'));
  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('/www/knitter.ovh/dmt3/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
INFO 13:59:59 deprecation User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, https://github.com/doctrine/orm/pull/12005, package doctrine/orm)
{
    "exception": {}
}
INFO 13:59:59 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://partner.knitter.ovh/_profiler/latest?ip=216.73.217.43&type=request",
    "method": "GET"
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_pgsql",
        "charset": "utf8",
        "idle_connection_ttl": 600,
        "host": "127.0.0.1",
        "port": 5432,
        "user": "bo3",
        "password": "<redacted>",
        "driverOptions": [],
        "serverVersion": "16.4",
        "defaultTableOptions": {
            "charset": "utf8",
            "collate": "cp1250_polish_ci"
        },
        "dbname": "drukomat_dev"
    }
}
DEBUG 13:59:59 doctrine Executing query: SELECT t0.id AS id_1, t0.additional_header AS additional_header_2, t0.additional_footer AS additional_footer_3, t0.header_active AS header_active_4, t0.footer_active AS footer_active_5, t0.overwrite_current_footer AS overwrite_current_footer_6 FROM additional_header_footer t0 ORDER BY t0.id ASC LIMIT 1
{
    "sql": "SELECT t0.id AS id_1, t0.additional_header AS additional_header_2, t0.additional_footer AS additional_footer_3, t0.header_active AS header_active_4, t0.footer_active AS footer_active_5, t0.overwrite_current_footer AS overwrite_current_footer_6 FROM additional_header_footer t0 ORDER BY t0.id ASC LIMIT 1"
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
DEBUG 13:59:59 doctrine Executing statement: SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.url AS url_2, p0_.active AS active_3, p0_.visible_in_menu AS visible_in_menu_4, p0_.image AS image_5, p0_.image_alt AS image_alt_6, p0_.created_at AS created_at_7, p0_.updated_at AS updated_at_8, p0_.second_image AS second_image_9, p0_.third_image AS third_image_10, p0_.description AS description_11, p0_.second_image_alt AS second_image_alt_12, p0_.third_image_alt AS third_image_alt_13 FROM product_industry p0_ WHERE p0_.active = ? AND p0_.visible_in_menu = ? ORDER BY p0_.id ASC (parameters: {params}, types: {types})

                            
DEBUG 13:59:59 doctrine Executing query: SELECT t0.id AS id_1, t0.active AS active_2, t0.section_offer_active AS section_offer_active_3, t0.section_offer_sequence AS section_offer_sequence_4, t0.section_lottie_files_active AS section_lottie_files_active_5, t0.section_lottie_files_sequence AS section_lottie_files_sequence_6, t0.section_easy_active AS section_easy_active_7, t0.section_easy_sequence AS section_easy_sequence_8, t0.section_blog_active AS section_blog_active_9, t0.section_blog_sequence AS section_blog_sequence_10, t0.section_script_active AS section_script_active_11, t0.section_script_sequence AS section_script_sequence_12, t0.section_script_content AS section_script_content_13, t0.section_newsletter_active AS section_newsletter_active_14, t0.section_newsletter_sequence AS section_newsletter_sequence_15, t0.newsletter_baner AS newsletter_baner_16, t0.newsletter_baner_mobile_image AS newsletter_baner_mobile_image_17, t0.section_register_active AS section_register_active_18, t0.section_register_sequence AS section_register_sequence_19, t0.section_marketing_active AS section_marketing_active_20, t0.section_marketing_sequence AS section_marketing_sequence_21, t0.section_marketing_title AS section_marketing_title_22, t0.section_marketing_brief AS section_marketing_brief_23, t0.section_marketing_description AS section_marketing_description_24, t0.updated_at AS updated_at_25, t0.slider_id AS slider_id_26, t0.section_carousel_id AS section_carousel_id_27, t0.section_banner_id AS section_banner_id_28, t0.section_banner_2_id AS section_banner_2_id_29, t0.section_inspirations_id AS section_inspirations_id_30, t0.section_carousel_2_id AS section_carousel_2_id_31 FROM new_homepage t0 ORDER BY t0.id DESC LIMIT 1
{
    "sql": "SELECT t0.id AS id_1, t0.active AS active_2, t0.section_offer_active AS section_offer_active_3, t0.section_offer_sequence AS section_offer_sequence_4, t0.section_lottie_files_active AS section_lottie_files_active_5, t0.section_lottie_files_sequence AS section_lottie_files_sequence_6, t0.section_easy_active AS section_easy_active_7, t0.section_easy_sequence AS section_easy_sequence_8, t0.section_blog_active AS section_blog_active_9, t0.section_blog_sequence AS section_blog_sequence_10, t0.section_script_active AS section_script_active_11, t0.section_script_sequence AS section_script_sequence_12, t0.section_script_content AS section_script_content_13, t0.section_newsletter_active AS section_newsletter_active_14, t0.section_newsletter_sequence AS section_newsletter_sequence_15, t0.newsletter_baner AS newsletter_baner_16, t0.newsletter_baner_mobile_image AS newsletter_baner_mobile_image_17, t0.section_register_active AS section_register_active_18, t0.section_register_sequence AS section_register_sequence_19, t0.section_marketing_active AS section_marketing_active_20, t0.section_marketing_sequence AS section_marketing_sequence_21, t0.section_marketing_title AS section_marketing_title_22, t0.section_marketing_brief AS section_marketing_brief_23, t0.section_marketing_description AS section_marketing_description_24, t0.updated_at AS updated_at_25, t0.slider_id AS slider_id_26, t0.section_carousel_id AS section_carousel_id_27, t0.section_banner_id AS section_banner_id_28, t0.section_banner_2_id AS section_banner_2_id_29, t0.section_inspirations_id AS section_inspirations_id_30, t0.section_carousel_2_id AS section_carousel_2_id_31 FROM new_homepage t0 ORDER BY t0.id DESC LIMIT 1"
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: Using ProxyHelper::generateLazyGhost() is deprecated, use native lazy objects instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyGhostTrait" trait is deprecated, use native lazy objects instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: Using ProxyHelper::generateLazyGhost() is deprecated, use native lazy objects instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: Using ProxyHelper::generateLazyGhost() is deprecated, use native lazy objects instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: Using ProxyHelper::generateLazyGhost() is deprecated, use native lazy objects instead.
{
    "exception": {}
}
DEBUG 13:59:59 doctrine Executing statement: SELECT b0_.id AS id_0, b0_.slug AS slug_1, b0_.title AS title_2, b0_.active AS active_3, b0_.short_description AS short_description_4, b0_.description AS description_5, b0_.author_name AS author_name_6, b0_.image AS image_7, b0_.alt AS alt_8, b0_.created_at AS created_at_9, b0_.updated_at AS updated_at_10, b0_.blog_category_id AS blog_category_id_11 FROM blog__article b0_ WHERE b0_.active = ? ORDER BY b0_.created_at DESC LIMIT 10 (parameters: {params}, types: {types})

                            
INFO 13:59:59 deprecation User Deprecated: Since symfony/var-exporter 7.3: Using ProxyHelper::generateLazyGhost() is deprecated, use native lazy objects instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}
INFO 13:59:59 deprecation User Deprecated: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead.
{
    "exception": {}
}

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
"App\Entity\Product" object not found by "Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver".

  at vendor/symfony/doctrine-bridge/ArgumentResolver/EntityValueResolver.php:86
  at Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver->resolve()
     (vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:37)
  at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->resolve()
     (vendor/symfony/http-kernel/Controller/ArgumentResolver.php:91)
  at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:33)
  at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments()
     (vendor/symfony/http-kernel/HttpKernel.php:175)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:122)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->forward()
     (src/Controller/StaticPageController.php:927)
  at App\Controller\StaticPageController->staticPage()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/www/knitter.ovh/dmt3/vendor/autoload_runtime.php')
     (public/index.php:5)