Symfony Exception

SalesChannelMappingException

HTTP 500 Internal Server Error

Unable to find a matching sales channel for the request: http://showcase.payrexx.com/shopware6/public/account/login". 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.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request$type$catch);
  6.         } catch (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.             $this->httpKernel $httpKernel;
  2.         }
  3.         public function handle(Request $requestint $type self::MAIN_REQUESTbool $catch true): Response
  4.         {
  5.             return $this->httpKernel->handle($request$type$catch)->getResponse();
  6.         }
  7.         public function terminate(Request $requestResponse $response): void
  8.         {
  9.             $this->httpKernel->terminate($request$response);
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/usr/www/users/showcase/shopware6/vendor/autoload_runtime.php') in /usr/www/users/showcase/shopware6/public/index.php (line 12)
  1. use Symfony\Component\HttpKernel\HttpKernelInterface;
  2. use Symfony\Component\HttpKernel\TerminableInterface;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }

Stack Trace

SalesChannelMappingException
Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException:
Unable to find a matching sales channel for the request: http://showcase.payrexx.com/shopware6/public/account/login". Please make sure the domain mapping is correct.

  at /usr/www/users/showcase/shopware6/vendor/shopware/storefront/Framework/Routing/RequestTransformer.php:109
  at Shopware\Storefront\Framework\Routing\RequestTransformer->transform()
     (/usr/www/users/showcase/shopware6/vendor/shopware/core/HttpKernel.php:119)
  at Shopware\Core\HttpKernel->doHandle()
     (/usr/www/users/showcase/shopware6/vendor/shopware/core/HttpKernel.php:61)
  at Shopware\Core\HttpKernel->handle()
     (/usr/www/users/showcase/shopware6/public/index.php:63)
  at Symfony\Component\HttpKernel\HttpKernelInterface@anonymous/usr/www/users/showcase/shopware6/public/index.php:53$0->handle()
     (/usr/www/users/showcase/shopware6/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/usr/www/users/showcase/shopware6/vendor/autoload_runtime.php:29)
  at require_once('/usr/www/users/showcase/shopware6/vendor/autoload_runtime.php')
     (/usr/www/users/showcase/shopware6/public/index.php:12)