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

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

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Must have
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: 2.35.1
    • Labels:
    • Story Points:
      3
    • Sprint:
      Sprint #140
    • Section:
      Block: Carousel Header
    • P4 site:
      Denmark
    • Track:
      Development
    • Repositories:
      planet4-master-theme

      Description

      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)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              fhernand Florent Hernandez
              Reporter:
              nroussos Nikos Roussos
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: