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

Fatal error after deleting the location of a single location object

    Details

      Description

      Removing an location from a object with a single location generates the following fatal error
      Hi, ive created the following command to test this issue https://gist.github.com/jpingo/9fed174052507eef7c90
      When i run this a get the following fatal error:

      PHP Fatal error:  Call to a member function attribute() on a non-object in /var/www/html/ezpublish5/ezpublish_legacy/kernel/search/plugins/ezsearchengine/ezsearchengine.php on line 53
      PHP Stack trace:
      PHP   1. {main}() /var/www/html/ezpublish5/ezpublish/console:0
      PHP   2. Symfony\Component\Console\Application->run() /var/www/html/ezpublish5/ezpublish/console:27
      PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
      PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
      PHP   5. Symfony\Component\Console\Application->doRun() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
      PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
      PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:904
      PHP   8. EzSystems\TestSystemBundle\Command\Issues\Ezp21870FatalErrorWhenDeletingLocationCommand->execute() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
      PHP   9. eZ\Publish\Core\SignalSlot\LocationService->deleteLocation() /var/www/html/ezpublish5/src/EzSystems/TestSystemBundle/Command/Issues/Ezp21870FatalErrorWhenDeletingLocationCommand.php:126
      PHP  10. eZ\Publish\Core\SignalSlot\SignalDispatcher\DefaultSignalDispatcher->emit() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/LocationService.php:330
      PHP  11. eZ\Publish\Core\SignalSlot\Slot\LegacyDeleteLocationSlot->receive() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/SignalDispatcher/DefaultSignalDispatcher.php:84
      PHP  12. eZ\Publish\Core\MVC\Legacy\Kernel->runCallback() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/Slot/LegacyDeleteLocationSlot.php:46
      PHP  13. ezpKernel->runCallback() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:106
      PHP  14. eZ\Publish\Core\MVC\Legacy\Kernel\CLIHandler->runCallback() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php:68
      PHP  15. eZ\Publish\Core\SignalSlot\Slot\{closure}() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/CLIHandler.php:130
      PHP  16. eZContentOperationCollection::registerSearchObject() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/Slot/LegacyDeleteLocationSlot.php:41
      PHP  17. eZSearch::addObject() /var/www/html/ezpublish5/ezpublish_legacy/kernel/content/ezcontentoperationcollection.php:595
      PHP  18. eZSearchEngine->addObject() /var/www/html/ezpublish5/ezpublish_legacy/kernel/classes/ezsearch.php:109
      

        Issue Links

          Activity

          Show
          Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/595
          Show
          Petar Spanja (Inactive) added a comment - Merged in ezpublish-kernel/master: https://github.com/ezsystems/ezpublish-kernel/commit/2367b1910b711dbf16055189b3cb11708752988a
          Show
          Marcos Loureiro (Inactive) added a comment - Integration test PR: https://github.com/ezsystems/ezpublish-kernel/pull/603
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Pingo (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 7 hours, 35 minutes
                7h 35m