Symfony Exception

SalesChannelMappingException

HTTP 500 Internal Server Error

Unable to find a matching sales channel for the request: https://www.pan-biotech.de/hepes-buffer-1m-1149.html". Please make sure the domain mapping is correct.

Exception

Shopware\Storefront\Framework\Routing\Exception\ SalesChannelMappingException

  1.         $salesChannel $this->findSalesChannel($request);
  2.         if ($salesChannel === null) {
  3.             // this class and therefore the "isSalesChannelRequired" method is currently not extendable
  4.             // which can cause problems when adding custom paths
  5.             throw new SalesChannelMappingException($request->getUri());
  6.         }
  7.         $absoluteBaseUrl $this->getSchemeAndHttpHost($request) . $request->getBaseUrl();
  8.         $baseUrl str_replace($absoluteBaseUrl''$salesChannel['url']);
  1.         $container $kernel->getContainer();
  2.         // transform request to resolve seo urls and detect sales channel
  3.         $transformed $container
  4.             ->get(RequestTransformerInterface::class)
  5.             ->transform($request);
  6.         $redirect $container
  7.             ->get(CanonicalRedirectService::class)
  8.             ->getRedirect($transformed);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (\Doctrine\DBAL\Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
  1.     }
  2. } else {
  3.     $kernel = new InstallerKernel($appEnv$debug);
  4. }
  5. $result $kernel->handle($request);
  6. if ($result instanceof Response) {
  7.     $result->send();
  8.     $kernel->terminate($request$result);
  9. } else {

Stack Trace

SalesChannelMappingException
Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException:
Unable to find a matching sales channel for the request: https://www.pan-biotech.de/hepes-buffer-1m-1149.html". Please make sure the domain mapping is correct.

  at /var/www/clients/client44/web130/web/vendor/shopware/storefront/Framework/Routing/RequestTransformer.php:144
  at Shopware\Storefront\Framework\Routing\RequestTransformer->transform()
     (/var/www/clients/client44/web130/web/vendor/shopware/core/HttpKernel.php:134)
  at Shopware\Core\HttpKernel->doHandle()
     (/var/www/clients/client44/web130/web/vendor/shopware/core/HttpKernel.php:79)
  at Shopware\Core\HttpKernel->handle()
     (/var/www/clients/client44/web130/web/public/index.php:85)