Symfony Exception

ErrorException RuntimeError StorefrontException

HTTP 500 Internal Server Error

Can not render @Storefront/storefront/utilities/form-validation-config.html.twig view: An exception has been thrown during the rendering of a template ("Warning: is_dir(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/validator/Resources/translations) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)") in @Storefront/storefront/utilities/form-validation-config.html.twig at line 2. with these parameters: {"headerParameters":[],"footerParameters":[],"themeIconConfig":{"thoenes":{"path":"app\/storefront\/src\/assets\/icon-pack\/thoenes","namespace":"WbnThemeThoenes"}},"stickyHeaderScrollPosition":140}

Exceptions 3

Shopware\Storefront\Controller\Exception\ StorefrontException

Show exception properties
Shopware\Storefront\Controller\Exception\StorefrontException {#247
  -statusCode: 500
  -headers: []
  #parameters: array:3 [
    "message" => "An exception has been thrown during the rendering of a template ("Warning: is_dir(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/validator/Resources/translations) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)") in "@Storefront/storefront/utilities/form-validation-config.html.twig" at line 2."
    "view" => "@Storefront/storefront/utilities/form-validation-config.html.twig"
    "parameters" => "{"headerParameters":[],"footerParameters":[],"themeIconConfig":{"thoenes":{"path":"app\/storefront\/src\/assets\/icon-pack\/thoenes","namespace":"WbnThemeThoenes"}},"stickyHeaderScrollPosition":140}"
  ]
  #statusCode: 500
  #errorCode: "STOREFRONT__CAN_NOT_RENDER_VIEW"
}
Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom) (500 Internal Server Error)

Symfony Exception

Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)

Exceptions 4

ErrorException

Show exception properties
ErrorException {#9055
  #severity: E_WARNING
}
  1. if (0 < $line) {
  2. $text .= ' at line '.$line;
  3. }
  4. if (!file_exists($file)) {
  5. return $text;
  6. }
  7. $link = $this->fileLinkFormat->format($file, $line);
  1. <?php if ($trace['file']) { ?>
  2. <?php
  3. $lineNumber = $trace['line'] ?: 1;
  4. $fileLink = $this->fileLinkFormat->format($trace['file'], $lineNumber);
  5. $filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
  6. $filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
  7. ?>
  8. <span class="block trace-file-path">
  9. in
  10. <a href="<?= $fileLink; ?>">
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
  2. if ($displayCodeSnippet) {
  3. $isFirstUserCode = false;
  4. } ?>
  5. <div class="trace-line <?= $isVendorTrace ? 'trace-from-vendor' : ''; ?>">
  6. <?= $this->include('views/trace.html.php', [
  7. 'prefix' => $index,
  8. 'i' => $i,
  9. 'trace' => $trace,
  10. 'style' => $isVendorTrace ? 'compact' : ($displayCodeSnippet ? 'expanded' : ''),
  11. ]); ?>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </h3>
  2. <div class="tab-content">
  3. <?php
  4. foreach ($exceptionAsArray as $i => $e) {
  5. echo $this->include('views/traces.html.php', [
  6. 'exception' => $e,
  7. 'index' => $i + 1,
  8. 'expand' => in_array($i, $exceptionWithUserCode, true) || ([] === $exceptionWithUserCode && 0 === $i),
  9. ]);
  10. }
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </div>
  2. </div>
  3. </header>
  4. <?php } ?>
  5. <?= $this->include('views/exception.html.php', $context); ?>
  6. <script>
  7. <?= $this->include('assets/js/exception.js'); ?>
  8. </script>
  9. </body>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. ]);
  2. }
  3. $exceptionMessage = $this->escape($exception->getMessage());
  4. return $this->include($debugTemplate, [
  5. 'exception' => $exception,
  6. 'exceptionMessage' => $exceptionMessage,
  7. 'statusText' => $statusText,
  8. 'statusCode' => $statusCode,
  9. 'logger' => null !== $this->logger && class_exists(DebugLoggerConfigurator::class) ? DebugLoggerConfigurator::getDebugLogger($this->logger) : null,
  1. $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2. }
  3. $exception = FlattenException::createWithDataRepresentation($exception, null, $headers);
  4. return $exception->setAsString($this->renderException($exception));
  5. }
  6. /**
  7. * Gets the HTML content associated with the given exception.
  8. */
  1. {
  2. $flattenException = FlattenException::createFromThrowable($exception);
  3. $debug = \is_bool($this->debug) ? $this->debug : ($this->debug)($flattenException);
  4. if ($debug || !$template = $this->findTemplate($flattenException->getStatusCode())) {
  5. return $this->fallbackErrorRenderer->render($exception);
  6. }
  7. return $flattenException->setAsString($this->twig->render($template, [
  8. 'exception' => $flattenException,
  9. 'status_code' => $flattenException->getStatusCode(),
  1. */
  2. protected static function getErrorController2Service($container)
  3. {
  4. $a = ($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack());
  5. return $container->services['error_controller'] = new \Symfony\Component\HttpKernel\Controller\ErrorController(($container->services['http_kernel'] ?? self::getHttpKernelService($container)), 'error_controller', new \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer(($container->privates['serializer'] ?? self::getSerializerService($container)), \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer::getPreferredFormat($a), new class(fn () => \Symfony\Bundle\FrameworkBundle\ErrorHandler\ErrorRenderer\RuntimeModeErrorRendererSelector::select($container->getEnv('bool:default::key:web:default:kernel.runtime_mode:'), #[\Closure(name: 'twig.error_renderer.html', class: 'Symfony\\Bridge\\Twig\\ErrorRenderer\\TwigErrorRenderer')] fn () => ($container->privates['twig.error_renderer.html'] ?? self::getTwig_ErrorRenderer_HtmlService($container)), #[\Closure(name: 'error_handler.error_renderer.cli', class: 'Symfony\\Component\\ErrorHandler\\ErrorRenderer\\CliErrorRenderer')] fn () => ($container->privates['error_handler.error_renderer.cli'] ??= new \Symfony\Component\ErrorHandler\ErrorRenderer\CliErrorRenderer()))) extends \Symfony\Component\DependencyInjection\Argument\LazyClosure implements \Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface { public function render(\Throwable $exception): \Symfony\Component\ErrorHandler\Exception\FlattenException { return $this->service->render(...\func_get_args()); } }, \Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer::isDebug($a, true)));
  6. }
  7. /**
  8. * Gets the public 'event_dispatcher' shared service.
  9. *
  1. $flattenException->setAsString($this->serializer->serialize($flattenException, $format, [
  2. 'exception' => $exception,
  3. 'debug' => $debug,
  4. ]));
  5. } catch (NotEncodableValueException) {
  6. $flattenException = $this->fallbackErrorRenderer->render($exception);
  7. }
  8. return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9. }
  1. ) {
  2. }
  3. public function __invoke(\Throwable $exception): Response
  4. {
  5. $exception = $this->errorRenderer->render($exception);
  6. return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7. }
  8. public function preview(Request $request, int $code): Response
  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. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
in vendor/symfony/http-kernel/HttpKernel.php -> handleThrowable (line 91)
  1. $this->finishRequest($request, $type);
  2. throw $e;
  3. }
  4. return $response = $this->handleThrowable($e, $request, $type);
  5. } finally {
  6. $this->requestStack->pop();
  7. if ($response instanceof StreamedResponse && $callback = $response->getCallback()) {
  8. $requestStack = $this->requestStack;
  1. $this->dispatcher->dispatch($event);
  2. return $event->getResponse();
  3. }
  4. return parent::handle($request, $type, $catch);
  5. }
  6. }
  1. if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {
  2. Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3. }
  4. try {
  5. return $kernel->handle($request, $type, $catch);
  6. } finally {
  7. // restore global state
  8. Request::setTrustedProxies($trustedProxies, $trustedHeaderSet);
  9. }
  10. }
  1. protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
  2. {
  3. $this->surrogate?->addSurrogateCapability($request);
  4. // always a "master" request (as the real master request can be in cache)
  5. $response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
  6. $this->forwardedRequest = $request;
  7. /*
  8. * Support stale-if-error given on Responses or as a config option.
  9. * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  1. // avoid that the backend sends no content
  2. $subRequest->headers->remove('If-Modified-Since');
  3. $subRequest->headers->remove('If-None-Match');
  4. $response = $this->forward($subRequest, $catch);
  5. if ($response->isCacheable()) {
  6. $this->store($request, $response);
  7. }
  1. }
  2. if (null === $entry) {
  3. $this->record($request, 'miss');
  4. return $this->fetch($request, $catch);
  5. }
  6. if (!$this->isFreshEnough($request, $entry)) {
  7. $this->record($request, 'stale');
  1. $response = $this->fetch($request, $catch);
  2. } else {
  3. $response = null;
  4. do {
  5. try {
  6. $response = $this->lookup($request, $catch);
  7. } catch (CacheWasLockedException) {
  8. }
  9. } while (null === $response);
  10. }
  1. // only handle main request inside http cache, because ESI tags are also interpreted as main request.
  2. // sub requests are requests, which are forwarded to the kernel inside the php stack
  3. // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894
  4. if ($type === HttpKernelInterface::MAIN_REQUEST) {
  5. $response = parent::handle($request, $type, $catch);
  6. } elseif ($request->attributes->has('_sw_esi')) {
  7. $response = parent::handle($request, $type, $catch);
  8. } else {
  9. $response = $this->getKernel()->handle($request, $type, $catch);
  10. }
in vendor/shopware/core/Kernel.php -> handle (line 135)
  1. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  2. {
  3. $this->boot();
  4. return $this->getHttpKernel()->handle($request, $type, $catch);
  5. }
  6. public function boot(): void
  7. {
  8. if (!$this->booted) {
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/autoload_runtime.php') in public/index.php (line 10)
  1. use Shopware\Core\Installer\InstallerKernel;
  2. use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
  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. }

Shopware\Storefront\Controller\Exception\ StorefrontException

Can not render @Storefront/storefront/utilities/form-validation-config.html.twig view: An exception has been thrown during the rendering of a template ("Warning: is_dir(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/validator/Resources/translations) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)") in "@Storefront/storefront/utilities/form-validation-config.html.twig" at line 2. with these parameters: {"headerParameters":[],"footerParameters":[],"themeIconConfig":{"thoenes":{"path":"app\/storefront\/src\/assets\/icon-pack\/thoenes","namespace":"WbnThemeThoenes"}},"stickyHeaderScrollPosition":140}

Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom) (500 Internal Server Error)

Symfony Exception

Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)

Exceptions 5

ErrorException

Show exception properties
ErrorException {#9521
  #severity: E_WARNING
}
  1. if (0 < $line) {
  2. $text .= ' at line '.$line;
  3. }
  4. if (!file_exists($file)) {
  5. return $text;
  6. }
  7. $link = $this->fileLinkFormat->format($file, $line);
  1. <?php if ($trace['file']) { ?>
  2. <?php
  3. $lineNumber = $trace['line'] ?: 1;
  4. $fileLink = $this->fileLinkFormat->format($trace['file'], $lineNumber);
  5. $filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
  6. $filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
  7. ?>
  8. <span class="block trace-file-path">
  9. in
  10. <a href="<?= $fileLink; ?>">
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
  2. if ($displayCodeSnippet) {
  3. $isFirstUserCode = false;
  4. } ?>
  5. <div class="trace-line <?= $isVendorTrace ? 'trace-from-vendor' : ''; ?>">
  6. <?= $this->include('views/trace.html.php', [
  7. 'prefix' => $index,
  8. 'i' => $i,
  9. 'trace' => $trace,
  10. 'style' => $isVendorTrace ? 'compact' : ($displayCodeSnippet ? 'expanded' : ''),
  11. ]); ?>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </h3>
  2. <div class="tab-content">
  3. <?php
  4. foreach ($exceptionAsArray as $i => $e) {
  5. echo $this->include('views/traces.html.php', [
  6. 'exception' => $e,
  7. 'index' => $i + 1,
  8. 'expand' => in_array($i, $exceptionWithUserCode, true) || ([] === $exceptionWithUserCode && 0 === $i),
  9. ]);
  10. }
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </div>
  2. </div>
  3. </header>
  4. <?php } ?>
  5. <?= $this->include('views/exception.html.php', $context); ?>
  6. <script>
  7. <?= $this->include('assets/js/exception.js'); ?>
  8. </script>
  9. </body>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. ]);
  2. }
  3. $exceptionMessage = $this->escape($exception->getMessage());
  4. return $this->include($debugTemplate, [
  5. 'exception' => $exception,
  6. 'exceptionMessage' => $exceptionMessage,
  7. 'statusText' => $statusText,
  8. 'statusCode' => $statusCode,
  9. 'logger' => null !== $this->logger && class_exists(DebugLoggerConfigurator::class) ? DebugLoggerConfigurator::getDebugLogger($this->logger) : null,
  1. $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2. }
  3. $exception = FlattenException::createWithDataRepresentation($exception, null, $headers);
  4. return $exception->setAsString($this->renderException($exception));
  5. }
  6. /**
  7. * Gets the HTML content associated with the given exception.
  8. */
  1. {
  2. $flattenException = FlattenException::createFromThrowable($exception);
  3. $debug = \is_bool($this->debug) ? $this->debug : ($this->debug)($flattenException);
  4. if ($debug || !$template = $this->findTemplate($flattenException->getStatusCode())) {
  5. return $this->fallbackErrorRenderer->render($exception);
  6. }
  7. return $flattenException->setAsString($this->twig->render($template, [
  8. 'exception' => $flattenException,
  9. 'status_code' => $flattenException->getStatusCode(),
  1. */
  2. protected static function getErrorController2Service($container)
  3. {
  4. $a = ($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack());
  5. return $container->services['error_controller'] = new \Symfony\Component\HttpKernel\Controller\ErrorController(($container->services['http_kernel'] ?? self::getHttpKernelService($container)), 'error_controller', new \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer(($container->privates['serializer'] ?? self::getSerializerService($container)), \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer::getPreferredFormat($a), new class(fn () => \Symfony\Bundle\FrameworkBundle\ErrorHandler\ErrorRenderer\RuntimeModeErrorRendererSelector::select($container->getEnv('bool:default::key:web:default:kernel.runtime_mode:'), #[\Closure(name: 'twig.error_renderer.html', class: 'Symfony\\Bridge\\Twig\\ErrorRenderer\\TwigErrorRenderer')] fn () => ($container->privates['twig.error_renderer.html'] ?? self::getTwig_ErrorRenderer_HtmlService($container)), #[\Closure(name: 'error_handler.error_renderer.cli', class: 'Symfony\\Component\\ErrorHandler\\ErrorRenderer\\CliErrorRenderer')] fn () => ($container->privates['error_handler.error_renderer.cli'] ??= new \Symfony\Component\ErrorHandler\ErrorRenderer\CliErrorRenderer()))) extends \Symfony\Component\DependencyInjection\Argument\LazyClosure implements \Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface { public function render(\Throwable $exception): \Symfony\Component\ErrorHandler\Exception\FlattenException { return $this->service->render(...\func_get_args()); } }, \Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer::isDebug($a, true)));
  6. }
  7. /**
  8. * Gets the public 'event_dispatcher' shared service.
  9. *
  1. $flattenException->setAsString($this->serializer->serialize($flattenException, $format, [
  2. 'exception' => $exception,
  3. 'debug' => $debug,
  4. ]));
  5. } catch (NotEncodableValueException) {
  6. $flattenException = $this->fallbackErrorRenderer->render($exception);
  7. }
  8. return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9. }
  1. ) {
  2. }
  3. public function __invoke(\Throwable $exception): Response
  4. {
  5. $exception = $this->errorRenderer->render($exception);
  6. return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7. }
  8. public function preview(Request $request, int $code): Response
  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. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
  1. if ($pop = $request !== $this->requestStack->getMainRequest()) {
  2. $this->requestStack->push($request);
  3. }
  4. try {
  5. $response = $this->handleThrowable($exception, $request, self::MAIN_REQUEST);
  6. } finally {
  7. if ($pop) {
  8. $this->requestStack->pop();
  9. }
  10. }
  1. if ($hasRun) {
  2. throw $e;
  3. }
  4. $hasRun = true;
  5. $kernel->terminateWithException($e, $request);
  6. };
  7. }
  8. } elseif ($event instanceof ConsoleEvent && $app = $event->getCommand()->getApplication()) {
  9. $output = $event->getOutput();
  10. if ($output instanceof ConsoleOutputInterface) {
in /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorHandler.php :: {closure:Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure():71} (line 538)
  1. $this->exceptionHandler = null;
  2. }
  3. try {
  4. if (null !== $exceptionHandler) {
  5. $exceptionHandler($exception);
  6. return;
  7. }
  8. $handlerException ??= $exception;
  9. } catch (\Throwable $handlerException) {
ErrorHandler->handleException()

ErrorException

Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)

  1. if (0 < $line) {
  2. $text .= ' at line '.$line;
  3. }
  4. if (!file_exists($file)) {
  5. return $text;
  6. }
  7. $link = $this->fileLinkFormat->format($file, $line);
  1. <?php if ($trace['file']) { ?>
  2. <?php
  3. $lineNumber = $trace['line'] ?: 1;
  4. $fileLink = $this->fileLinkFormat->format($trace['file'], $lineNumber);
  5. $filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
  6. $filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
  7. ?>
  8. <span class="block trace-file-path">
  9. in
  10. <a href="<?= $fileLink; ?>">
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. $displayCodeSnippet = $isFirstUserCode && !$isVendorTrace;
  2. if ($displayCodeSnippet) {
  3. $isFirstUserCode = false;
  4. } ?>
  5. <div class="trace-line <?= $isVendorTrace ? 'trace-from-vendor' : ''; ?>">
  6. <?= $this->include('views/trace.html.php', [
  7. 'prefix' => $index,
  8. 'i' => $i,
  9. 'trace' => $trace,
  10. 'style' => $isVendorTrace ? 'compact' : ($displayCodeSnippet ? 'expanded' : ''),
  11. ]); ?>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </h3>
  2. <div class="tab-content">
  3. <?php
  4. foreach ($exceptionAsArray as $i => $e) {
  5. echo $this->include('views/traces.html.php', [
  6. 'exception' => $e,
  7. 'index' => $i + 1,
  8. 'expand' => in_array($i, $exceptionWithUserCode, true) || ([] === $exceptionWithUserCode && 0 === $i),
  9. ]);
  10. }
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. </div>
  2. </div>
  3. </header>
  4. <?php } ?>
  5. <?= $this->include('views/exception.html.php', $context); ?>
  6. <script>
  7. <?= $this->include('assets/js/exception.js'); ?>
  8. </script>
  9. </body>
  1. private function include(string $name, array $context = []): string
  2. {
  3. extract($context, \EXTR_SKIP);
  4. ob_start();
  5. include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
  6. return trim(ob_get_clean());
  7. }
  8. /**
  1. ]);
  2. }
  3. $exceptionMessage = $this->escape($exception->getMessage());
  4. return $this->include($debugTemplate, [
  5. 'exception' => $exception,
  6. 'exceptionMessage' => $exceptionMessage,
  7. 'statusText' => $statusText,
  8. 'statusCode' => $statusCode,
  9. 'logger' => null !== $this->logger && class_exists(DebugLoggerConfigurator::class) ? DebugLoggerConfigurator::getDebugLogger($this->logger) : null,
  1. $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2. }
  3. $exception = FlattenException::createWithDataRepresentation($exception, null, $headers);
  4. return $exception->setAsString($this->renderException($exception));
  5. }
  6. /**
  7. * Gets the HTML content associated with the given exception.
  8. */
  1. {
  2. $flattenException = FlattenException::createFromThrowable($exception);
  3. $debug = \is_bool($this->debug) ? $this->debug : ($this->debug)($flattenException);
  4. if ($debug || !$template = $this->findTemplate($flattenException->getStatusCode())) {
  5. return $this->fallbackErrorRenderer->render($exception);
  6. }
  7. return $flattenException->setAsString($this->twig->render($template, [
  8. 'exception' => $flattenException,
  9. 'status_code' => $flattenException->getStatusCode(),
  1. */
  2. protected static function getErrorController2Service($container)
  3. {
  4. $a = ($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack());
  5. return $container->services['error_controller'] = new \Symfony\Component\HttpKernel\Controller\ErrorController(($container->services['http_kernel'] ?? self::getHttpKernelService($container)), 'error_controller', new \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer(($container->privates['serializer'] ?? self::getSerializerService($container)), \Symfony\Component\ErrorHandler\ErrorRenderer\SerializerErrorRenderer::getPreferredFormat($a), new class(fn () => \Symfony\Bundle\FrameworkBundle\ErrorHandler\ErrorRenderer\RuntimeModeErrorRendererSelector::select($container->getEnv('bool:default::key:web:default:kernel.runtime_mode:'), #[\Closure(name: 'twig.error_renderer.html', class: 'Symfony\\Bridge\\Twig\\ErrorRenderer\\TwigErrorRenderer')] fn () => ($container->privates['twig.error_renderer.html'] ?? self::getTwig_ErrorRenderer_HtmlService($container)), #[\Closure(name: 'error_handler.error_renderer.cli', class: 'Symfony\\Component\\ErrorHandler\\ErrorRenderer\\CliErrorRenderer')] fn () => ($container->privates['error_handler.error_renderer.cli'] ??= new \Symfony\Component\ErrorHandler\ErrorRenderer\CliErrorRenderer()))) extends \Symfony\Component\DependencyInjection\Argument\LazyClosure implements \Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface { public function render(\Throwable $exception): \Symfony\Component\ErrorHandler\Exception\FlattenException { return $this->service->render(...\func_get_args()); } }, \Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer::isDebug($a, true)));
  6. }
  7. /**
  8. * Gets the public 'event_dispatcher' shared service.
  9. *
  1. $flattenException->setAsString($this->serializer->serialize($flattenException, $format, [
  2. 'exception' => $exception,
  3. 'debug' => $debug,
  4. ]));
  5. } catch (NotEncodableValueException) {
  6. $flattenException = $this->fallbackErrorRenderer->render($exception);
  7. }
  8. return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9. }
  1. ) {
  2. }
  3. public function __invoke(\Throwable $exception): Response
  4. {
  5. $exception = $this->errorRenderer->render($exception);
  6. return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7. }
  8. public function preview(Request $request, int $code): Response
  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. }
  2. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  3. {
  4. if ($request->attributes->get('exception') !== null) {
  5. return parent::handle($request, $type, $catch);
  6. }
  7. if (!$request->attributes->has('sw-skip-transformer')) {
  8. try {
  9. $request = $this->requestTransformer->transform($request);
  1. }
  2. $request = $this->duplicateRequest($throwable, $event->getRequest());
  3. try {
  4. $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
  5. } catch (\Exception $e) {
  6. $f = FlattenException::createFromThrowable($e);
  7. $this->logException($e, \sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), basename($e->getFile()), $e->getLine()));
  1. $this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
  2. $e = $this->stopwatch->start($this->name, 'event_listener');
  3. try {
  4. ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
  5. } finally {
  6. if ($e->isStarted()) {
  7. $e->stop();
  8. }
  9. }
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. *
  2. * @return TEvent
  3. */
  4. public function dispatch(object $event, ?string $eventName = null): object
  5. {
  6. $event = $this->dispatcher->dispatch($event, $eventName);
  7. if (!$event instanceof FlowEventAware) {
  8. return $event;
  9. }
  1. ) {
  2. }
  3. public function dispatch(object $event, ?string $eventName = null): object
  4. {
  5. $event = $this->dispatcher->dispatch($event, $eventName);
  6. if (!HookableEventFactory::isHookable($event)) {
  7. return $event;
  8. }
  1. }
  2. $this->dispatch($nested, $name);
  3. }
  4. }
  5. return $this->dispatcher->dispatch($event, $eventName);
  6. }
  7. /**
  8. * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9. */
  1. try {
  2. $this->beforeDispatch($eventName, $event);
  3. try {
  4. $e = $this->stopwatch->start($eventName, 'section');
  5. try {
  6. $this->dispatcher->dispatch($event, $eventName);
  7. } finally {
  8. if ($e->isStarted()) {
  9. $e->stop();
  10. }
  11. }
  1. * Handles a throwable by trying to convert it to a Response.
  2. */
  3. private function handleThrowable(\Throwable $e, Request $request, int $type): Response
  4. {
  5. $event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
  6. $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
  7. // a listener might have replaced the exception
  8. $e = $event->getThrowable();
  9. if (!$event->hasResponse()) {
  1. $this->finishRequest($request, $type);
  2. throw $e;
  3. }
  4. return $response = $this->handleThrowable($e, $request, $type);
  5. } finally {
  6. $this->requestStack->pop();
  7. if ($response instanceof StreamedResponse && $callback = $response->getCallback()) {
  8. $requestStack = $this->requestStack;
  1. $this->dispatcher->dispatch($event);
  2. return $event->getResponse();
  3. }
  4. return parent::handle($request, $type, $catch);
  5. }
  6. }
  1. if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {
  2. Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3. }
  4. try {
  5. return $kernel->handle($request, $type, $catch);
  6. } finally {
  7. // restore global state
  8. Request::setTrustedProxies($trustedProxies, $trustedHeaderSet);
  9. }
  10. }
  1. protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
  2. {
  3. $this->surrogate?->addSurrogateCapability($request);
  4. // always a "master" request (as the real master request can be in cache)
  5. $response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
  6. $this->forwardedRequest = $request;
  7. /*
  8. * Support stale-if-error given on Responses or as a config option.
  9. * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  1. // avoid that the backend sends no content
  2. $subRequest->headers->remove('If-Modified-Since');
  3. $subRequest->headers->remove('If-None-Match');
  4. $response = $this->forward($subRequest, $catch);
  5. if ($response->isCacheable()) {
  6. $this->store($request, $response);
  7. }
  1. }
  2. if (null === $entry) {
  3. $this->record($request, 'miss');
  4. return $this->fetch($request, $catch);
  5. }
  6. if (!$this->isFreshEnough($request, $entry)) {
  7. $this->record($request, 'stale');
  1. $response = $this->fetch($request, $catch);
  2. } else {
  3. $response = null;
  4. do {
  5. try {
  6. $response = $this->lookup($request, $catch);
  7. } catch (CacheWasLockedException) {
  8. }
  9. } while (null === $response);
  10. }
  1. // only handle main request inside http cache, because ESI tags are also interpreted as main request.
  2. // sub requests are requests, which are forwarded to the kernel inside the php stack
  3. // https://github.com/symfony/symfony/issues/51648#issuecomment-1717846894
  4. if ($type === HttpKernelInterface::MAIN_REQUEST) {
  5. $response = parent::handle($request, $type, $catch);
  6. } elseif ($request->attributes->has('_sw_esi')) {
  7. $response = parent::handle($request, $type, $catch);
  8. } else {
  9. $response = $this->getKernel()->handle($request, $type, $catch);
  10. }
  1. public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response
  2. {
  3. $this->boot();
  4. return $this->getHttpKernel()->handle($request, $type, $catch);
  5. }
  6. public function boot(): void
  7. {
  8. if (!$this->booted) {
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. $response->send(false);
  7. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  8. fastcgi_finish_request();
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/autoload_runtime.php') in /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/public/index.php (line 10)
  1. use Shopware\Core\Installer\InstallerKernel;
  2. use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
  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. }

Shopware\Storefront\Controller\Exception\ StorefrontException

Can not render @Storefront/storefront/utilities/form-validation-config.html.twig view: An exception has been thrown during the rendering of a template ("Warning: is_dir(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/validator/Resources/translations) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom)") in "@Storefront/storefront/utilities/form-validation-config.html.twig" at line 2. with these parameters: {"headerParameters":[],"footerParameters":[],"themeIconConfig":{"thoenes":{"path":"app\/storefront\/src\/assets\/icon-pack\/thoenes","namespace":"WbnThemeThoenes"}},"stickyHeaderScrollPosition":140}


Fatal error: Uncaught ErrorException: Warning: file_exists(): open_basedir restriction in effect. File(/data/webs/thoeadmin/thoenes-solutions.com/staging/vendor/shopware/storefront/Resources/views/storefront/utilities/form-validation-config.html.twig) is not within the allowed path(s): (/var/customers/webs/thoeadmin:/var/customers/tmp/thoeadmin:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom) in /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php:236 Stack trace: #0 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/Resources/views/trace.html.php(15): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->formatFile() #1 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(343): include('...') #2 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/Resources/views/traces.html.php(48): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #3 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(343): include('...') #4 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/Resources/views/exception.html.php(54): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #5 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(343): include('...') #6 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/Resources/views/exception_full.html.php(35): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #7 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(343): include('...') #8 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(140): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #9 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(72): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException() #10 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorHandler.php(655): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render() #11 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorHandler.php(538): Symfony\Component\ErrorHandler\ErrorHandler->renderException() #12 /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorHandler.php(556): Symfony\Component\ErrorHandler\ErrorHandler->handleException() #13 [internal function]: Symfony\Component\ErrorHandler\ErrorHandler->handleException() #14 {main} thrown in /var/customers/webs/thoeadmin/thoenes-solutions.com/staging/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 236