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

Error when switching to Edit mode with multiple Schedule Blocks

    XMLWordPrintable

Details

    Description

      It is possible to produce an unexpected error using multiple Schedule and Code Blocks

      Steps to reproduce:
      1. Create new LP
      2. Add following blocks in following order:

      • Schedule block (name: S1)
      • Code block (content: "1")
      • Schedule block (name: S2)
      • Code block (content: "2")
      • Schedule block (name: S3)

      3. Set overflow from S1 to S2, S2 to S3
      4. Publish LP
      5. Switch to Edit mode

      Result:

      • Unexpected error appears in the UI.
      • Entry is present in logs:
        • [1.10.0-beta]

          2017-06-21 08:26:56] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Catchable Fatal Error: Argument 1 passed to Tree\Node\Node::addChild() must implement interface Tree\Node\NodeInterface, null given, called in /Users/mnocon/Desktop/studio_demo/vendor/ezsystems/landing-page-fieldtype-bundle/src/FieldType/LandingPage/Model/Block/ScheduleBlock/ScheduleService.php on line 52 and defined" at /Users/mnocon/Desktop/studio_demo/vendor/nicmart/tree/src/Node/NodeTrait.php line 68

          Unknown macro: {"exception"}
        • [1.7.3]

          2017-06-21 09:41:35 request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Catchable Fatal Error: Argument 1 passed to EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\PageService::moveForward() must be an instance of EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\BlockValue, null given, called in /Users/mnocon/Desktop/studio_demo/vendor/ezsystems/landing-page-fieldtype-bundle/src/FieldType/LandingPage/Model/PageService.php on line 225 and defined" at /Users/mnocon/Desktop/studio_demo/vendor/ezsystems/landing-page-fieldtype-bundle/src/FieldType/LandingPage/Model/PageService.php line 220

          Unknown macro: {"exception"}

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: