Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22076

Updating root node using php api causes error kernel 20 in subnodes

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Low Low
    • None
    • 5.2, 2013.11
    • None

    Description

      I run this code inside the execute method of a command:

      $repository = $this->getContainer()->get('ezpublish.api.repository');
      $locationService = $repository->getLocationService();
              
      $location = $locationService->loadLocation( 2 );
              
      $contentService = $repository->getContentService();
              
      $contentInfo = $contentService->loadContentInfo( $location->contentInfo->id );
      $contentDraft = $contentService->createContentDraft( $contentInfo );
              
              
      $contentUpdateStruct = $contentService->newContentUpdateStruct();
       
      $contentUpdateStruct->setField( 'name', 'My new title' );
              
      $contentDraft = $contentService->updateContent( $contentDraft->versionInfo, $contentUpdateStruct );
      $content = $contentService->publishVersion( $contentDraft->versionInfo );
      

      My folder has the attribute name, it is in fact changed by this code, the problem is that when I try to access the subnodes( only subnodes, the root node displays just fine) it shows:

      Error / kernel (20)
      The requested page could not be displayed. (20)
      The requested address or module could not be found.

      Possible reasons:
      The address was misspelled. Try changing the URL.
      The name of the module was misspelled. Try changing the URL.
      There is no <Develop-it> module available on this site.
      The site is using URL matching to determine which siteaccess to use, but the name of the siteaccess is missing from the URL. Try to add the name of the siteaccess; it should be specified before the name of the module.

      But, if I edit the root node and publish it using the admin interface, everything works fine again.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tcv_br tcv_br
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: