Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException {#869 -statusCode: 500 -headers: [] #parameters: array:1 [ "url" => "http://www.dolezych.de/shop/de/shop/hebebaender/schlaufenbaender/schlaufenband-docolor-typ-b-2-lagig-mit-vollverstaerkung" ] }
$salesChannel = $this->findSalesChannel($request);
if ($salesChannel === null) {
// this class and therefore the "isSalesChannelRequired" method is currently not extendable
// which can cause problems when adding custom paths
throw new SalesChannelMappingException($request->getUri());
}
$absoluteBaseUrl = $this->getSchemeAndHttpHost($request) . $request->getBaseUrl();
$baseUrl = str_replace($absoluteBaseUrl, '', $salesChannel['url']);
{
/**
* Start the shopware progress
* In this step the sales channel and the seo url information will be fetch
*/
$clone = $this->decorated->transform($request);
/**
* Start SEO Professional transformer
*/
return $this->requestTransformer->transform($clone, $request);
}
public function transform(Request $request): Request
{
try {
$transformedRequest = $this->decorated->transform($request);
} catch (SalesChannelMappingException $salesChannelMappingException) {
$this->checkRequestAndRedirect($request);
throw $salesChannelMappingException;
}
* @throws \Doctrine\DBAL\Exception
*/
public function transform(Request $request): Request
{
try {
$transformedRequest = $this->decorated->transform($request);
} catch (SalesChannelMappingException $salesChannelMappingException) {
// Redirect Check
$this->checkRequestAndRedirect($request, $request);
throw $salesChannelMappingException;
}
$container = $kernel->getContainer();
// transform request to resolve seo urls and detect sales channel
$transformed = $container
->get(RequestTransformerInterface::class)
->transform($request);
$redirect = $container
->get(CanonicalRedirectService::class)
->getRedirect($transformed);
}
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): HttpKernelResult
{
try {
return $this->doHandle($request, $type, $catch);
} catch (Exception $e) {
/** @var Params|array{url?: string} $connectionParams */
$connectionParams = self::getConnection()->getParams();
$message = str_replace([$connectionParams['url'] ?? null, $connectionParams['password'] ?? null, $connectionParams['user'] ?? null], '******', $e->getMessage());
$this->httpKernel = $httpKernel;
}
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Response
{
return $this->httpKernel->handle($request, $type, $catch)->getResponse();
}
public function terminate(Request $request, Response $response): void
{
$this->httpKernel->terminate($request, $response);
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\TerminableInterface;
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require_once __DIR__ . '/../vendor/autoload_runtime.php';
if (!file_exists(__DIR__ . '/../.env') && !file_exists(__DIR__ . '/../.env.dist') && !file_exists(__DIR__ . '/../.env.local.php')) {
$_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
}
SalesChannelMappingException
|
---|
Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException: Unable to find a matching sales channel for the request: "http://www.dolezych.de/shop/de/shop/hebebaender/schlaufenbaender/schlaufenband-docolor-typ-b-2-lagig-mit-vollverstaerkung". Please make sure the domain mapping is correct. at /home/dolvyxks/www.dolezych.de/vendor/shopware/storefront/Framework/Routing/RequestTransformer.php:113 at Shopware\Storefront\Framework\Routing\RequestTransformer->transform() (/home/dolvyxks/www.dolezych.de/custom/plugins/DreiscSeoPro/src/Decorator/Shopware/Storefront/Routing/RequestTransformerDecorator.php:29) at DreiscSeoPro\Decorator\Shopware\Storefront\Routing\RequestTransformerDecorator->transform() (/home/dolvyxks/www.dolezych.de/custom/plugins/ApLanguageDetector/src/Storefront/Framework/Routing/RequestTransformer.php:31) at ApLanguageDetector\Storefront\Framework\Routing\RequestTransformer->transform() (/home/dolvyxks/www.dolezych.de/custom/plugins/ApSeoRedirect/src/Storefront/Framework/Routing/RequestTransformer.php:30) at ApSeoRedirect\Storefront\Framework\Routing\RequestTransformer->transform() (/home/dolvyxks/www.dolezych.de/vendor/shopware/core/HttpKernel.php:123) at Shopware\Core\HttpKernel->doHandle() (/home/dolvyxks/www.dolezych.de/vendor/shopware/core/HttpKernel.php:65) at Shopware\Core\HttpKernel->handle() (/home/dolvyxks/www.dolezych.de/public/index.php:71) at Symfony\Component\HttpKernel\HttpKernelInterface@anonymous /home/dolvyxks/www.dolezych.de/public/index.php:61$0->handle() (/home/dolvyxks/www.dolezych.de/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (/home/dolvyxks/www.dolezych.de/vendor/autoload_runtime.php:29) at require_once('/home/dolvyxks/www.dolezych.de/vendor/autoload_runtime.php') (/home/dolvyxks/www.dolezych.de/public/index.php:14) |