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

Cannot preview Landing Page after saving the draft

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-rc1
    • Fix Version/s: 3.0.1
    • Component/s: Page Builder
    • Labels:

      Description

      Preview for Landing Page for blocks breaks when a draft is saved.

       

      Steps to reproduce:

      1. Login as admin
      2. Go to Content -> Content Structure
      3. Start creating a new Landing Page
      4. Fill in Page Title and Description: "TestLP"
      5. Add a Code block with text "TestBlock"
      6. Click "Save draft"

      Expected:

      Draft is saved. Preview for Landing page is rendered correctly

      Actual:

      Draft is saved. Block preview is not rendered, instead an exception is shown:

      [2020-03-25T12:19:12.609885+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Argument 1 passed to eZ\Publish\Core\Repository\SiteAccessAware\LocationService::loadLocation() must be of the type int, null given, called in /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/ezplatform-page-fieldtype/src/lib/Event/Subscriber/BlockContextSubscriber.php on line 90" at /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/ezplatform-kernel/eZ/Publish/Core/Repository/SiteAccessAware/LocationService.php line 52 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to eZ\\Publish\\Core\\Repository\\SiteAccessAware\\LocationService::loadLocation() must be of the type int, null given, called in /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/ezplatform-page-fieldtype/src/lib/Event/Subscriber/BlockContextSubscriber.php on line 90 at /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/ezplatform-kernel/eZ/Publish/Core/Repository/SiteAccessAware/LocationService.php:52) 

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marek.nocon@ez.no Marek Nocoń
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: