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

Creating an article with public api throw warning on xmltext in regards to relations

    XMLWordPrintable

    Details

    • Sprint:
      Aconcagua Sprint 1

      Description

      Creating an article with the public api will throw the following warning

      Warning: array_flip(): Can only flip STRING and INTEGER values! in /var/www/apache2php53/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RelationProcessor.php on line 108
      
      Call Stack:
      0.0030 654976 1. {main}() /var/www/apache2php53/ezp5/ezpublish_testsystem/tests/runtests.php:0
      2.4282 9192672 2. ezpTestRunner->run() /var/www/apache2php53/ezp5/ezpublish_testsystem/tests/runtests.php:71
      16.1896 69816896 3. PHPUnit_TextUI_TestRunner->doRun() /var/www/apache2php53/ezp5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:372
      16.2980 70304584 4. PHPUnit_Framework_TestSuite->run() /usr/share/pear/PHPUnit/TextUI/TestRunner.php:305
      16.4611 70320344 5. PHPUnit_Framework_TestSuite->run() /usr/share/pear/PHPUnit/Framework/TestSuite.php:693
      16.4708 70328384 6. PHPUnit_Framework_TestSuite->run() /usr/share/pear/PHPUnit/Framework/TestSuite.php:693
      16.4709 70329744 7. PHPUnit_Framework_TestSuite->runTest() /usr/share/pear/PHPUnit/Framework/TestSuite.php:733
      16.4710 70329744 8. PHPUnit_Extensions_SeleniumTestCase->run() /usr/share/pear/PHPUnit/Framework/TestSuite.php:757
      16.4710 70329840 9. PHPUnit_Framework_TestResult->run() /usr/share/pear/PHPUnit/Extensions/SeleniumTestCase.php:524
      16.5241 70377864 10. PHPUnit_Framework_TestCase->runBare() /usr/share/pear/PHPUnit/Framework/TestResult.php:666
      101.5026 94996776 11. eZPSeleneseTests->runTest() /usr/share/pear/PHPUnit/Framework/TestCase.php:628
      168.2804 95025696 12. PHPUnit_Extensions_SeleniumTestCase->runTest() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:772
      168.2807 95025696 13. PHPUnit_Framework_TestCase->runTest() /usr/share/pear/PHPUnit/Extensions/SeleniumTestCase.php:625
      168.2808 95027160 14. ReflectionMethod->invokeArgs() /usr/share/pear/PHPUnit/Framework/TestCase.php:738
      168.2808 95027192 15. eZPublishAPILocationServiceCreateLocation->testTC1496CreateLocation() /usr/share/pear/PHPUnit/Framework/TestCase.php:738
      168.2808 95027192 16. eZPSeleneseTests->runTestStages() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/locationservice/createlocation/ezpublishapilocationservicecreatelocation.php:52
      168.2868 95211792 17. call_user_func() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:743
      168.2868 95211792 18. eZPublishAPILocationServiceCreateLocation->testTC1496CreateLocation_stage1() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:743
      168.3323 95211816 19. eZPublishAPILocationServiceCreateLocation->createNeededContents() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/locationservice/createlocation/ezpublishapilocationservicecreatelocation.php:61
      171.7024 111748176 20. eZPublishAPITestHelper->saveContent() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/locationservice/createlocation/ezpublishapilocationservicecreatelocation.php:44
      171.7026 111749632 21. eZ\Publish\Core\SignalSlot\ContentService->createContent() /var/www/apache2php53/ezp5/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitesthelper.php:895
      171.7026 111749632 22. eZ\Publish\Core\Repository\ContentService->createContent() /var/www/apache2php53/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php:237
      171.7825 111865968 23. eZ\Publish\Core\Repository\RelationProcessor->appendFieldRelations() /var/www/apache2php53/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:582
      171.7825 111867280 24. array_flip() /var/www/apache2php53/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/RelationProcessor.php:108
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcos.loureiro@ez.no Marcos Loureiro (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours, 55 minutes
                  1d 3h 55m