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

Fatal error when viewing an image with a link

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.5
    • Fix Version/s: QA tracked issues, 5.3.5.1
    • Component/s: Misc
    • Labels:

      Description

      related to: EZP-23513
      After adding a link to an image on the body of a content(Article), when trying to view the image PHP fatal error occurs.
      Steps:
      1. got to admin interface
      2. create a content of type article
      3. add a image to the body and add alink to that image(www.google.pt)
      4. go to frontend the view the created article
      5. error 503 service unavailable occurs

      fullstack trace:

      PHP Fatal error:  Call to protected method eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\Content::legalizeLinkParameters() from context '' in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/Provider/Content.php on line 80
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP Stack trace:
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   2. eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->handle() /var/www/html/ezpublish5/web/index.php:77
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   3. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/HttpCache.php:36
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   4. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->lookup() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:192
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   5. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->validate() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:334
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   6. Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:375
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   7. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   8. eZ\\Bundle\\EzPublishCoreBundle\\Kernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:471
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP   9. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php:67
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  10. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2303
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  11. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3024
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  12. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2895
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  13. call_user_func_array:{/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921}() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  14. EzSystems\\DemoBundle\\Controller\\DemoController->showArticleAction() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  15. eZ\\Publish\\Core\\MVC\\Symfony\\Controller\\Content\\ViewController->viewLocation() /var/www/html/ezpublish5/vendor/ezsystems/demobundle/EzSystems/DemoBundle/Controller/DemoController.php:94
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  16. eZ\\Publish\\Core\\MVC\\Symfony\\Controller\\Content\\ViewController->renderLocation() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php:130
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  17. eZ\\Publish\\Core\\MVC\\Symfony\\View\\Manager->renderLocation() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php:407
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  18. eZ\\Publish\\Core\\MVC\\Symfony\\View\\Manager->renderContentView() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php:280
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  19. Symfony\\Component\\Templating\\DelegatingEngine->render() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php:337
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  20. Symfony\\Bundle\\TwigBundle\\TwigEngine->render() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php:50
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  21. Symfony\\Bridge\\Twig\\TwigEngine->render() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php:76
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  22. Twig_Template->render() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:53
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  23. Twig_Template->display() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4630
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  24. Twig_Template->displayWithErrorHandling() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4623
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  25. __TwigTemplate_16c054f0fdc16ec753553fd89f759cea62c98ec6884073c85ee0c16df929d275->doDisplay() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4642
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  26. Twig_Template->display() /var/www/html/ezpublish5/ezpublish/cache/prod/twig/16/c0/54f0fdc16ec753553fd89f759cea62c98ec6884073c85ee0c16df929d275.php:32
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  27. Twig_Template->displayWithErrorHandling() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4623
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  28. __TwigTemplate_78b2485a5be04418c433f7275002525927fdfb73c7af88a6d9c5b3b2c51442c7->doDisplay() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4642
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  29. Twig_Template->displayBlock() /var/www/html/ezpublish5/ezpublish/cache/prod/twig/78/b2/485a5be04418c433f7275002525927fdfb73c7af88a6d9c5b3b2c51442c7.php:111
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  30. __TwigTemplate_16c054f0fdc16ec753553fd89f759cea62c98ec6884073c85ee0c16df929d275->block_content() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4587
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  31. eZ\\Publish\\Core\\MVC\\Symfony\\Templating\\Twig\\Extension\\ContentExtension->renderField() /var/www/html/ezpublish5/ezpublish/cache/prod/twig/16/c0/54f0fdc16ec753553fd89f759cea62c98ec6884073c85ee0c16df929d275.php:137
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  32. Twig_Template->renderBlock() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/ContentExtension.php:393
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  33. Twig_Template->displayBlock() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4606
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  34. __TwigTemplate_75d9910778bcb28a804019f9faa534915b1a2a2d4774a8f3fd38e043a2b07faf->block_ezxmltext_field() /var/www/html/ezpublish5/ezpublish/cache/prod/classes.php:4587
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  35. eZ\\Publish\\Core\\MVC\\Symfony\\Templating\\Twig\\Extension\\ContentExtension->xmltextToHtml5() /var/www/html/ezpublish5/ezpublish/cache/prod/twig/75/d9/910778bcb28a804019f9faa534915b1a2a2d4774a8f3fd38e043a2b07faf.php:231
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  36. eZ\\Publish\\Core\\FieldType\\XmlText\\Converter\\Html5->convert() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/ContentExtension.php:405
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  37. eZ\\Publish\\Core\\FieldType\\XmlText\\Converter\\EmbedToHtml5->convert() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/Html5.php:175
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  38. eZ\\Publish\\Core\\FieldType\\XmlText\\Converter\\EmbedToHtml5->processTag() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5.php:370
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  39. Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler->render() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/EmbedToHtml5.php:140
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  40. eZ\\Bundle\\EzPublishCoreBundle\\Fragment\\InlineFragmentRenderer->render() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php:101
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  41. Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer->render() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Fragment/InlineFragmentRenderer.php:62
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  42. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php:84
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  43. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3024
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  44. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2895
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  45. call_user_func_array:{/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921}() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  46. eZ\\Publish\\Core\\MVC\\Symfony\\Controller\\Content\\ViewController->embedContent() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2921
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  47. eZ\\Publish\\Core\\MVC\\Symfony\\Controller\\Content\\ViewController->renderContent() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php:352
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  48. eZ\\Publish\\Core\\MVC\\Symfony\\View\\Manager->renderContent() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php:420
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  49. eZ\\Publish\\Core\\MVC\\Symfony\\View\\Manager->renderContentView() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php:241
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  50. eZ\\Publish\\Core\\MVC\\Legacy\\View\\{closure}() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php:335
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  51. eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\{closure}() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/TwigContentViewLayoutDecorator.php:108
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  52. eZ\\Publish\\Core\\MVC\\Legacy\\Kernel->runCallback() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/Provider/Content.php:119
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  53. ezpKernel->runCallback() /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:162
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  54. ezpKernelWeb->runCallback() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernel.php:68
      [Thu Apr 09 08:36:31 2015] [error] [client 192.168.2.64] PHP  55. eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\{closure}() /var/www/html/ezpublish5/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php:1207
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              miguel.jacinto-obsolete@ez.no Miguel das Neves Jacinto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: