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

[Admin Interface] Regression on preview (fatal error)

    Details

      Description

      Previewing any kind of content will throw a fatal error.

      Steps to reproduce:

      1 - create a draft of any content type
      2 - fill some data (whatever)
      3 - click on preview
      4 - verify fatal error on front end
      5 - verify on apache logs the error described bellow
      

      Fatal error:

      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP Catchable fatal error:  Argument 10 passed to eZNodeviewfunctions::generateNodeViewData() must be an instance of eZModule, none given, called in /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/content/versionview.php on line 284 and defined in /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/classes/eznodeviewfunctions.php on line 78, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP Stack trace:, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   1. {main}() /var/www/html/ezpublish52/web/index.php:0, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   2. eZ\\Bundle\\EzPublishCoreBundle\\Kernel->handle() /var/www/html/ezpublish52/web/index.php:64, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   3. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php:62, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   4. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2210, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2908, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   6. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2779, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   7. call_user_func_array() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2805, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   8. eZ\\Bundle\\EzPublishLegacyBundle\\Controller\\LegacyKernelController->indexAction() /var/www/html/ezpublish52/ezpublish/bootstrap.php.cache:2805, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP   9. eZ\\Publish\\Core\\MVC\\Legacy\\Kernel->run() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php:109, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  10. ezpKernel->run() /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:78, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  11. ezpKernelWeb->run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernel.php:53, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  12. ezpKernelWeb->dispatchLoop() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php:318, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  13. eZModule->run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php:788, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  14. eZProcess::run() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezmodule.php:1789, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  15. eZProcess->runFile() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php:21, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  16. include() /var/www/html/ezpublish52/ezpublish_testsystem/.run/lib/ezutils/classes/ezprocess.php:46, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      [Mon Aug 19 10:25:41 2013] [error] [client 192.168.2.55] PHP  17. eZNodeviewfunctions::generateNodeViewData() /var/www/html/ezpublish52/ezpublish_testsystem/.run/kernel/content/versionview.php:284, referer: http://52.cen.mcl/ezflow_site_admin/content/versionview/59/1/eng-GB
      

        Activity

        Show
        André Rømcke added a comment - Blame: https://github.com/ezsystems/ezpublish-legacy/commit/2983482617faeff36c76ccdbf4cfe7a44efd03e3#L1R78
        Show
        André Rømcke added a comment - Fixed in https://github.com/ezsystems/ezpublish-legacy/commit/85ab7fb8374f31c5cba00450e71d27e456552878
        Hide
        Joao Pingo (Inactive) added a comment -

        Tested on master, issue no longer present
        QA Approved

        Show
        Joao Pingo (Inactive) added a comment - Tested on master, issue no longer present QA Approved

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcos Loureiro (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, 30 minutes
              1h 30m