Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-5319

Carousel Header block: Failing to edit page because when image source is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Released
    • Icon: Must have Must have
    • 2.35.1
    • 3
    • Block: Carousel Header
    • Sprint #140

      Sentry Issue: PLANET4-V7

      TypeError: Argument 1 passed to P4\MasterTheme\MasterSite::P4\MasterTheme\{closure}() must be of the type string, null given, called in /app/source/public/wp-content/plugins/timber-library/cache/twig/d6/d66bd955ebcd71d8d251a73eeea9288b38b511e25b2edddec8cefbd4d0eab3ce.php on line 117
        File "/app/source/vendor/themes/planet4-master-theme/src/MasterSite.php", line 1172, in P4\MasterTheme\MasterSite::P4\MasterTheme\{closure}
          : function ( string $source ) {
        File "/wp-content/plugins/timber-library/cache/twig/d6/d66bd955ebcd71d8d251a73eeea9288b38b511e25b2edddec8cefbd4d0eab3ce.php", line 117, in __TwigTemplate_d03437a98fbb34938e068d27a73dc8ec430bbbe7d9ea89c73a01abd46df02afe::doDisplay
          echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('cf_img_url')->getCallable(), [$this->getAttribute($context["slide"], "image_srcset", [])]), "html", null, true);
        File "/wp-content/plugins/timber-library/vendor/twig/twig/src/Template.php", line 455, in Twig\Template::displayWithErrorHandling
          $this->doDisplay($context, $blocks);
        File "/wp-content/plugins/timber-library/vendor/twig/twig/src/Template.php", line 422, in Twig\Template::display
          $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
        File "/wp-content/plugins/timber-library/cache/twig/53/5309c24ca25abd06b844b12992159a5cf369e5133ef2c3548be880a86aad37e7.php", line 44, in __TwigTemplate_416d13cd8a597cf7c6910cd95abc39cf95ce80061f106ca44ba515fc4effa440::block_carousel_header
          $this->loadTemplate((("./carousel_header_" . $this->getAttribute(($context["fields"] ?? null), "block_style", [])) . ".twig"), "carousel_header.twig", 4)->display($context);
      ...
      (23 additional frame(s) were not displayed)
      

            fhernand Florent Hernandez (Inactive)
            nroussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: