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

Embeded error - fatal error call singleFunction() on a non-object

    XMLWordPrintable

    Details

      Description

      Adding to error.ini settings to embed url, when that url is to a bundle it will throw:

      Fatal error:

      [error] [client 192.168.2.55] PHP Fatal error:  Call to a member function singleFunction() on a non-object in /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/error/view.php on line 118
      

      Code in error.ini:

      [ErrorSettings-kernel]
      ErrorHandler[20]=embed
      EmbedURL[20]=/my/display/embed_error
      

      Steps to reproduce:
      1 - Generate bundle:

      Bundle: "my/TestBundle"
      Name: "myTestBundle"
      Configuration files: "yml"
      ( other definitions leave as default )
      

      2 - Change routing
      edit file: <ezp-root>/src/my/TestBundle/Resources/config/routing.yml
      change:

          pattern:  /hello/{name}
      

      to:

          pattern:  /my/display/{name}
      

      3 - Add a error.ini.append.php with above code to settings/override folder

      4 - Open a non existing page.
      ( ex: http://<ezp-site>/asd )

      5 - Verify that there was a 503 error

      Stack trace:

      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP Fatal error:  Call to a member function singleFunction() on a non-object in /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/error/view.php on line 118
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP Stack trace:
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   1. {main}() /var/www/html/ezpublish52/web/index.php:0
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   2. eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->handle() /var/www/html/ezpublish52/web/index.php:64
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   3. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/HttpCache.php:36
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   4. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->lookup() /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:194
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   5. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->fetch() /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:330
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   6. Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:430
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   7. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   8. eZ\\Bundle\\EzPublishCoreBundle\\Kernel->handle() /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:473
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP   9. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php:62
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  10. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2179
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  11. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2878
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  12. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2748
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  13. call_user_func_array() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2774
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  14. eZ\\Bundle\\EzPublishLegacyBundle\\Controller\\LegacyKernelController->indexAction() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2774
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  15. eZ\\Publish\\Core\\MVC\\Legacy\\Kernel->run() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php:87
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  16. ezpKernel->run() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:78
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  17. ezpKernelWeb->run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernel.php:53
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  18. ezpKernelWeb->dispatchLoop() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php:318
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  19. eZModule->handleError() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php:807
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  20. eZModule->run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezmodule.php:636
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  21. eZProcess::run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezmodule.php:1743
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  22. eZProcess->runFile() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php:21
      [Wed Jul 31 13:42:02 2013] [error] [client 192.168.2.55] PHP  23. include() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php:46
      (END) 
      
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: