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

Content on the Fly inline content creation fails with Recommendation Bundle

    XMLWordPrintable

    Details

      Description

      When using Content on the Fly feature to create content inline, content publishing fails.

      Steps to reproduce:

      1. New eZ Studio Demo install
      2. Open folder
      3. Choose embed
      4. Choose create tab (coming from a test bundle)
      5. Choose image content type
      6. Use default location
      7. Confirm selection
      8. Fill in required fields
      9. Click publish
      10. Note error appearing

      Error below:

      <?xml version="1.0" encoding="UTF-8"?>
      <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml">
       <errorCode>500</errorCode>
       <errorMessage>Internal Server Error</errorMessage>
       <errorDescription>Warning: in_array() expects parameter 2 to be array, null given</errorDescription>
       <trace>#0 [internal function]: Symfony\Component\Debug\ErrorHandler-&gt;handleError(2, 'in_array() expe...', '/Users/Janit/Si...', 112, Array)
      #1 /Users/Janit/Sites/ezstudio/vendor/ezsystems/recommendation-bundle/Client/YooChooseNotifier.php(112): in_array('folder', NULL)
      #2 /Users/Janit/Sites/ezstudio/vendor/ezsystems/recommendation-bundle/eZ/Publish/Slot/PublishVersion.php(21): EzSystems\RecommendationBundle\Client\YooChooseNotifier-&gt;updateContent(106)
      #3 /Users/Janit/Sites/ezstudio/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/SignalDispatcher/DefaultSignalDispatcher.php(76): EzSystems\RecommendationBundle\eZ\Publish\Slot\PublishVersion-&gt;receive(Object(eZ\Publish\Core\SignalSlot\Signal\ContentService\PublishVersionSignal))
      #4 /Users/Janit/Sites/ezstudio/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/SignalDispatcher/SignalDispatcherTransactionWrapper.php(68): eZ\Publish\Core\SignalSlot\SignalDispatcher\DefaultSignalDispatcher-&gt;emit(Object(eZ\Publish\Core\SignalSlot\Signal\ContentService\PublishVersionSignal))
      #5 /Users/Janit/Sites/ezstudio/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php(431): eZ\Publish\Core\SignalSlot\SignalDispatcher\SignalDispatcherTransactionWrapper-&gt;emit(Object(eZ\Publish\Core\SignalSlot\Signal\ContentService\PublishVersionSignal))
      #6 /Users/Janit/Sites/ezstudio/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Controller/Content.php(526): eZ\Publish\Core\SignalSlot\ContentService-&gt;publishVersion(Object(eZ\Publish\Core\Repository\Values\Content\VersionInfo))
      #7 /Users/Janit/Sites/ezstudio/vendor/ezsystems/platform-ui-bundle/Controller/Rest/ContentController.php(91): eZ\Publish\Core\REST\Server\Controller\Content-&gt;publishVersion('106', '1')
      #8 [internal function]: EzSystems\PlatformUIBundle\Controller\Rest\ContentController-&gt;publishVersion('106', '1')
      #9 /Users/Janit/Sites/ezstudio/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(139): call_user_func_array(Array, Array)
      #10 /Users/Janit/Sites/ezstudio/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
      #11 /Users/Janit/Sites/ezstudio/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php(69): Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #12 /Users/Janit/Sites/ezstudio/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(185): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #13 /Users/Janit/Sites/ezstudio/web/app.php(66): Symfony\Component\HttpKernel\Kernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request))
      #14 {main}</trace>
       <file>/Users/Janit/Sites/ezstudio/vendor/ezsystems/recommendation-bundle/Client/YooChooseNotifier.php</file>
       <line>112</line>
      </ErrorMessage>
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jani.tarvainen@ez.no Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: