Doop uitnodiging

Prachtige tradities hebben ons geïnspireerd bij het maken van deze speciale creaties...

Ontdek onze doopseluitnodigingen en tafeldecoratie. Kleed voor deze dag de tafels in hetzelfde thema dankzij onze bijbehorende menu's en doopsuikerdoosjes.

227 artikelen gevonden

Key "original-price" does not exist as the sequence/mapping is empty. (500 Internal Server Error)

Symfony Exception

Key "original-price" does not exist as the sequence/mapping is empty.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#12779
  -lineno: 3
  -name: "@SyliusShop/_price.html.twig"
  -rawMessage: "Key "original-price" does not exist as the sequence/mapping is empty."
  -sourcePath: "/home/cottonbird/htdocs/front/releases/20260325133632Z/themes/CottonbirdB2C/templates/bundles/SyliusShopBundle/_price.html.twig"
  -sourceCode: """
    {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}\n
    {% set minPrice = get_min_price_with_catalog_promotion(product) %}\n
    {% set strikePrice = minPrice['original-price'] != minPrice['price'] %}\n
    \n
    {% if(strikePrice) %}\n
        <s>{{ money.convertAndFormat(minPrice['original-price']) }}</s>\n
    {% endif %}\n
    {% if color is defined and strikePrice %}\n
        <strong style="color:{{ color }}">\n
            {{ money.convertAndFormat(minPrice['price']) }}\n
        </strong>\n
    {% else %}\n
        {{ money.convertAndFormat(minPrice['price']) }}\n
    {% endif %}\n
    \n
    \n
    """
}
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% set minPrice = get_min_price_with_catalog_promotion(product) %}
  3. {% set strikePrice = minPrice['original-price'] != minPrice['price'] %}
  4. {% if(strikePrice) %}
  5. <s>{{ money.convertAndFormat(minPrice['original-price']) }}</s>
  6. {% endif %}
  7. {% if color is defined and strikePrice %}
  1. // line 1
  2. $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/_price.html.twig", 1)->unwrap();
  3. // line 2
  4. $context["minPrice"] = $this->extensions['App\Twig\Product\ProductExtension']->getMinPriceWithCatalogPromotion((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 2, $this->source); })()));
  5. // line 3
  6. $context["strikePrice"] = (CoreExtension::getAttribute($this->env, $this->source, (isset($context["minPrice"]) || array_key_exists("minPrice", $context) ? $context["minPrice"] : (function () { throw new RuntimeError('Variable "minPrice" does not exist.', 3, $this->source); })()), "original-price", [], "array", false, false, false, 3) != CoreExtension::getAttribute($this->env, $this->source, (isset($context["minPrice"]) || array_key_exists("minPrice", $context) ? $context["minPrice"] : (function () { throw new RuntimeError('Variable "minPrice" does not exist.', 3, $this->source); })()), "price", [], "array", false, false, false, 3));
  7. // line 4
  8. yield "
  9. ";
  10. // line 5
  11. if ((isset($context["strikePrice"]) || array_key_exists("strikePrice", $context) ? $context["strikePrice"] : (function () { throw new RuntimeError('Variable "strikePrice" does not exist.', 5, $this->source); })())) {
in vendor/twig/twig/src/Template.php -> doDisplay (line 388)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. // line 89
  2. yield " ";
  3. $context["color"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["catalogPromotions"]) || array_key_exists("catalogPromotions", $context) ? $context["catalogPromotions"] : (function () { throw new RuntimeError('Variable "catalogPromotions" does not exist.', 89, $this->source); })()), "first", [], "any", false, false, false, 89)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["catalogPromotions"]) || array_key_exists("catalogPromotions", $context) ? $context["catalogPromotions"] : (function () { throw new RuntimeError('Variable "catalogPromotions" does not exist.', 89, $this->source); })()), "first", [], "any", false, false, false, 89), "color", [], "any", false, false, false, 89)) : (""));
  4. // line 90
  5. yield " ";
  6. yield from $this->loadTemplate("@SyliusShop/_price.html.twig", "@SyliusShop/Product/_box.html.twig", 90)->unwrap()->yield(CoreExtension::toArray(["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 90, $this->source); })()), "color" => (isset($context["color"]) || array_key_exists("color", $context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.', 90, $this->source); })())]));
  7. // line 91
  8. yield " </p>
  9. ";
  10. // line 93
in vendor/twig/twig/src/Template.php -> doDisplay (line 388)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $context["isBigger"] = false;
  2. // line 2
  3. yield "
  4. ";
  5. // line 3
  6. yield from $this->loadTemplate("@SyliusShop/Product/_box.html.twig", "shop/Product/box/_product_catalog_standard.html.twig", 3)->unwrap()->yield($context);
  7. $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  8. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 388)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 359)
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. if ($this->container->has('templating')) {
  2. @trigger_error('Using the "templating" service is deprecated since Symfony 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
  3. $content = $this->container->get('templating')->render($view, $parameters);
  4. } elseif ($this->container->has('twig')) {
  5. $content = $this->container->get('twig')->render($view, $parameters);
  6. } else {
  7. throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  8. }
  9. if (null === $response) {
ResourceController->render() in src/Controller/ProductController.php (line 245)
  1. $params = [
  2. 'configuration' => $configuration,
  3. 'resource' => $resource,
  4. $this->metadata->getName() => $resource,
  5. ];
  6. $response = $this->render($configuration->getTemplate(ResourceActions::SHOW . '.html'), $params);
  7. $boxType = $request->attributes->get('boxType') ?? '';
  8. $response->setPublic();
  9. $response->headers->set('Surrogate-Control', 'content="ESI/1.0"');
  10. if (null !== $resource) {
in vendor/symfony/http-kernel/HttpKernel.php -> getProductFragmentAction (line 181)
  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. $this->boot();
  2. ++$this->requestStackSize;
  3. $this->resetServices = true;
  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 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/cottonbird/htdocs/front/releases/20260325133632Z/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. if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
  5. $_SERVER['HTTPS'] = 'on';
  6. $_SERVER['SERVER_PORT'] = 443;

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Key "original-price" does not exist as the sequence/mapping is empty.

  at themes/CottonbirdB2C/templates/bundles/SyliusShopBundle/_price.html.twig:3
  at Twig\Extension\CoreExtension::getAttribute()
     (var/cache/prod/twig/ca/ca2023f9ecb1a7cc640326a9c8160cea.php:52)
  at __TwigTemplate_d35eadf5fc2f3657fd026907ef2cee3e->doDisplay()
     (vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (var/cache/prod/twig/00/007864c587e7f43039f7fddb2e76e62e.php:312)
  at __TwigTemplate_ea5849453e5f20b8f28686be7040d904->doDisplay()
     (vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (var/cache/prod/twig/60/603302e8ae945c6c2ca4a941c8d1c2a5.php:53)
  at __TwigTemplate_29ac7be52d56edab25e0fc9fb7c56be9->doDisplay()
     (vendor/twig/twig/src/Template.php:388)
  at Twig\Template->yield()
     (vendor/twig/twig/src/Template.php:344)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:359)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:334)
  at Twig\Environment->render()
     (vendor/sylius/resource-bundle/src/Bundle/Controller/ControllerTrait.php:247)
  at Sylius\Bundle\ResourceBundle\Controller\ResourceController->render()
     (src/Controller/ProductController.php:245)
  at App\Controller\ProductController->getProductFragmentAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  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:197)
  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:29)
  at require_once('/home/cottonbird/htdocs/front/releases/20260325133632Z/vendor/autoload_runtime.php')
     (public/index.php:5)                

Machines met een "CO2-neutraal" label

Een onderscheiding die wordt toegekend aan bedrijven met een strategie om de CO2-uitstoot te verminderen.

Verantwoord papier

Ons papier is FSC-gecertificeerd, met als optie papier van 100% gerecycleerde vezels, aangeboden op een brede selectie modellen.

Groene inkt voor de aarde

Ons atelier gebruikt uitsluitend gecertificeerde composteerbare en biologisch afbreekbare inkten.

100% recycleerbare verpakking

De titel zegt het al helemaal: je bestelling wordt geleverd in een verpakking van 100% gerecycled materiaal.

Meer
/cookies