Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2974

Hiding some blocks (Code, Content List, Scheduler, Text) crash page builder

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • None
    • 3.0.0-beta4, 2.5.8
    • Page Builder
    • None

    Description

      Hiding default block with YAML works well for most blocks, but the following don't work:

      • Code
      • Content List
      • Content Scheduler
      • Text

      When you hide one of these they crash with the following error:

      Notice: Undefined index: thumbnail
      
      Symfony\Component\Debug\Exception\ContextErrorException 

      Steps to reproduce:

      1. Install and run eZ Platform EE
      2. Open front page in page view and edit
      3. Observe working page builder view
      4. Modify app/config/ezplatform.yml to include:
      ezplatform_page_fieldtype:
          blocks:
              content_list:
                  visible: false
              text:
                  visible: false
              content_scheduler:
                  visible: false
              code:
                  visible: false
      1. Reload page builder editing view
      2. Observe crash
      ContextErrorException
      HTTP 500 Internal Server Error
      Notice: Undefined index: thumbnail 
      
      in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/FieldType/Page/Block/Definition/BlockDefinitionFactory.php (line 88)
      
      BlockDefinitionFactory->getBlockDefinition('code')
      in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/FieldType/LandingPage/Converter/BlockDefinitionConverter.php (line 38)
      
      BlockDefinitionConverter->toHash()
      in vendor/ezsystems/ezplatform-page-fieldtype/src/lib/ApplicationConfig/Providers/BlockDefinitions.php (line 31)
      
      BlockDefinitions->getConfig()
      in vendor/ezsystems/ezplatform-page-builder/src/bundle/Controller/PageController.php (line 703)
      
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            jani.tarvainen@ibexa.co Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: