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

Unable to edit Landing Page with Collection Block

    XMLWordPrintable

Details

    Description

      It is impossible to edit Landing Page which contains Collection Block if some element assigned to the Collection Block was removed.

      Steps to reproduce

      1. Edit Landing Page and add Collection Block
      2. Add some content to Collection Block, for e.g. Article A
      3. Publish Landing Page
      4. Go to Content -> Content structure, find Article A
      5. Move Article A to the trash, and then empty trash
      6. Try to open your Landing Page (in my example just Home).

      It is impossible to do it in both Page and Content mode.

      Exception:

      {
          "ErrorMessage": {
              "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
              "errorCode": 404,
              "errorMessage": "Not Found",
              "errorDescription": "Could not find 'location' with identifier '64'",
              "trace": "#0 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Location\/Gateway\/ExceptionConversion.php(57): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\DoctrineDatabase->getBasicNodeData('64')\n#1 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/TreeHandler.php(158): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\ExceptionConversion->getBasicNodeData('64')\n#2 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Location\/Handler.php(109): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\TreeHandler->loadLocation('64')\n#3 \/var\/www\/ezplatform-ee-demo\/app\/cache\/dev\/appDevDebugProjectContainer.php(45539): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Handler->load('64')\n#4 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Cache\/LocationHandler.php(30): eZPublishCorePersistenceLegacyContentLocationHandler_000000005fb61d90000000000e674274751af4d9d76705e022af0e48682c500f->load('64')\n#5 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/LocationService.php(198): eZ\\Publish\\Core\\Persistence\\Cache\\LocationHandler->load('64')\n#6 \/var\/www\/ezplatform-ee-demo\/app\/cache\/dev\/appDevDebugProjectContainer.php(42989): eZ\\Publish\\Core\\Repository\\LocationService->loadLocation('64')\n#7 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/LocationService.php(101): eZPublishCoreRepositoryLocationService_000000005fb61fe0000000000e674274751af4d9d76705e022af0e48682c500f->loadLocation('64')\n#8 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/landing-page-fieldtype-bundle\/src\/FieldType\/LandingPage\/Model\/Block\/CollectionBlock.php(78): eZ\\Publish\\Core\\SignalSlot\\LocationService->loadLocation('64')\n#9 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/landing-page-fieldtype-bundle\/src\/FieldType\/LandingPage\/Converter\/JSONConverter.php(140): EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Model\\Block\\CollectionBlock->attributesToJson(Array)\n#10 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/landing-page-fieldtype-bundle\/src\/FieldType\/LandingPage\/Converter\/JSONConverter.php(86): EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Converter\\JSONConverter->blocksToArray(Array)\n#11 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/landing-page-fieldtype-bundle\/src\/FieldType\/LandingPage\/Converter\/JSONConverter.php(66): EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Converter\\JSONConverter->zonesToArray(Array)\n#12 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/landing-page-fieldtype-bundle\/src\/FieldType\/LandingPage\/Type.php(124): EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Converter\\JSONConverter->encode(Object(EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Model\\Page))\n#13 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/Values\/ContentType\/FieldType.php(203): EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Type->toHash(Object(EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Value))\n#14 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/FieldTypeSerializer.php(146): eZ\\Publish\\Core\\Repository\\Values\\ContentType\\FieldType->toHash(Object(EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Value))\n#15 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/FieldTypeSerializer.php(59): eZ\\Publish\\Core\\REST\\Common\\Output\\FieldTypeSerializer->serializeValue('fieldValue', Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\Repository\\Values\\ContentType\\FieldType), Object(EzSystems\\LandingPageFieldTypeBundle\\FieldType\\LandingPage\\Value))\n#16 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Output\/ValueObjectVisitor\/Version.php(111): eZ\\Publish\\Core\\REST\\Common\\Output\\FieldTypeSerializer->serializeFieldValue(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\Repository\\Values\\ContentType\\ContentType), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Field))\n#17 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Output\/ValueObjectVisitor\/Version.php(75): eZ\\Publish\\Core\\REST\\Server\\Output\\ValueObjectVisitor\\Version->visitField(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\Repository\\Values\\ContentType\\ContentType), Object(eZ\\Publish\\API\\Repository\\Values\\Content\\Field))\n#18 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/ValueObjectVisitorDispatcher.php(71): eZ\\Publish\\Core\\REST\\Server\\Output\\ValueObjectVisitor\\Version->visit(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor), Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\Version))\n#19 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(140): eZ\\Publish\\Core\\REST\\Common\\Output\\ValueObjectVisitorDispatcher->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\Version))\n#20 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Output\/ValueObjectVisitor\/RestContent.php(94): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visitValueObject(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\Version))\n#21 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/ValueObjectVisitorDispatcher.php(71): eZ\\Publish\\Core\\REST\\Server\\Output\\ValueObjectVisitor\\RestContent->visit(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor), Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestContent))\n#22 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(140): eZ\\Publish\\Core\\REST\\Common\\Output\\ValueObjectVisitorDispatcher->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestContent))\n#23 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Output\/ValueObjectVisitor\/RestExecutedView.php(144): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visitValueObject(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestContent))\n#24 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/ValueObjectVisitorDispatcher.php(71): eZ\\Publish\\Core\\REST\\Server\\Output\\ValueObjectVisitor\\RestExecutedView->visit(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor), Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#25 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(140): eZ\\Publish\\Core\\REST\\Common\\Output\\ValueObjectVisitorDispatcher->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#26 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(102): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visitValueObject(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#27 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/View\/AcceptHeaderVisitorDispatcher.php(58): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#28 \/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishRestBundle\/EventListener\/ResponseListener.php(61): eZ\\Publish\\Core\\REST\\Server\\View\\AcceptHeaderVisitorDispatcher->dispatch(Object(Symfony\\Component\\HttpFoundation\\Request), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#29 [internal function]: eZ\\Bundle\\EzPublishRestBundle\\EventListener\\ResponseListener->onKernelResultView(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent), 'kernel.view', Object(Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher))\n#30 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/EventDispatcher\/Debug\/WrappedListener.php(61): call_user_func(Array, Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent), 'kernel.view', Object(Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher))\n#31 [internal function]: Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener->__invoke(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent), 'kernel.view', Object(Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#32 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/EventDispatcher\/EventDispatcher.php(184): call_user_func(Object(Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener), Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent), 'kernel.view', Object(Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))\n#33 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/EventDispatcher\/EventDispatcher.php(46): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#34 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/EventDispatcher\/Debug\/TraceableEventDispatcher.php(140): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#35 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(149): Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher->dispatch('kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#36 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#37 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#38 \/var\/www\/ezplatform-ee-demo\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#39 \/var\/www\/ezplatform-ee-demo\/web\/app.php(70): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#40 {main}",
              "file": "\/var\/www\/ezplatform-ee-demo\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Location\/Gateway\/DoctrineDatabase.php",
              "line": 84
          }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: