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

Fatal error if bin/php/ezasynchronouspublisher.php is running using ezpublish:legacy:script

    XMLWordPrintable

Details

    Description

      If you run

      php ezpublish/console ezpublish:legacy:script bin/php/ezasynchronouspublisher.php
      

      When you publish some content you'll get the following errors

      Running script 'bin/php/ezasynchronouspublisher.php' in eZ Publish legacy context
      Running in interactive mode. Hit ctrl-c to interrupt.
      
      
      
      Processing item #508
      PHP Fatal error:  Call to undefined method eZPublishCorePersistenceDoctrineConnectionHandler_0000000020bd905b000000006a05ced9::setDbHandler() in /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpcontentpublishingprocess.php on line 184
      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:905
      PHP   8. eZ\Bundle\EzPublishLegacyBundle\Command\LegacyEmbedScriptCommand->execute() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
      PHP   9. eZ\Publish\Core\MVC\Legacy\Kernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Command/LegacyEmbedScriptCommand.php:73
      PHP  10. ezpKernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:127
      PHP  11. eZ\Publish\Core\MVC\Legacy\Kernel\CLIHandler->run() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php:53
      PHP  12. include() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/CLIHandler.php:116
      PHP  13. ezpContentPublishingQueueProcessor->run() /var/www/html/ezpublish5/ezpublish_legacy/bin/php/ezasynchronouspublisher.php:195
      PHP  14. ezpContentPublishingProcess->publish() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpcontentpublishingqueueprocessor.php:96
      
      Fatal error: eZ Publish did not finish its request
      The execution of eZ Publish was abruptly ended, the debug output is present below.
      PHP Fatal error:  Call to undefined method eZPublishCorePersistenceDoctrineConnectionHandler_0000000020bd905b000000006a05ced9::setDbHandler() in /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpcontentpublishingprocess.php on line 184
      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:905
      PHP   8. eZ\Bundle\EzPublishLegacyBundle\Command\LegacyEmbedScriptCommand->execute() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
      PHP   9. eZ\Publish\Core\MVC\Legacy\Kernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Command/LegacyEmbedScriptCommand.php:73
      PHP  10. ezpKernel->run() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:127
      PHP  11. eZ\Publish\Core\MVC\Legacy\Kernel\CLIHandler->run() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php:53
      PHP  12. include() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/CLIHandler.php:116
      PHP  13. ezpContentPublishingQueueProcessor->run() /var/www/html/ezpublish5/ezpublish_legacy/bin/php/ezasynchronouspublisher.php:195
      PHP  14. ezpContentPublishingProcess->publish() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpcontentpublishingqueueprocessor.php:96
      
      Fatal error: eZ Publish did not finish its request
      The execution of eZ Publish was abruptly ended, the debug output is present below.
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (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 - 1 hour
                1h