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

PHP warning and notice in the server tab in the system info

    Details

    • Sprint:
      Pollux Platform S6

      Description

      When displaying the system information (/shell#/admin/pjax%2Fsysteminfo in the "Server" tab), PHP is generating a warning and a notice:

      Warning: Missing argument 2 for eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\FileSizeExtension::sizeFilter(), called in /home/dp/dev/ezpublish-community/ezpublish/cache/prod/twig/2f/74/32a7e9a0b02828e96c945cf0e964832117baddb2387a062bb9d06bfe14c0.php on line 244 and defined in /home/dp/dev/ezpublish-community/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/FileSizeExtension.php on line 94
      

      ( ! ) Notice: Undefined variable: precision in /home/dp/dev/ezpublish-community/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/FileSizeExtension.php on line 112
      

        Issue Links

          Activity

          Show
          Gunnstein Lye added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/172
          Show
          Gunnstein Lye added a comment - Master: https://github.com/ezsystems/PlatformUIBundle/commit/4f5500c34f28b8c1116c493d2322e241db4b768c
          Hide
          Paulo Nunes (Inactive) added a comment -

          well, i'm not being able to reproduce the issue described in here. I'm always having this error in apache log when accessing "(/shell#/admin/pjax%2Fsysteminfo". Even after applying this issue's fix....

          [Tue Feb 17 15:55:52.774934 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP Fatal error:  Class 'ezcSystemInfo' not found in /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Helper/SystemInfoHelper.php on line 55, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.774981 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP Stack trace:, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.774997 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775006 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   2. FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->handle() /var/www/html/ezpublish5/web/index.php:81, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775015 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   3. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle() /var/www/html/ezpublish5/vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php:101, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775022 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   4. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->lookup() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:211, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775030 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   5. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->fetch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:347, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775048 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   6. Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:447, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775056 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   7. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775063 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   8. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:490, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775071 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP   9. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2377, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775078 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP  10. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3133, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775085 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP  11. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2984, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775092 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP  12. call_user_func_array:{/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022}() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775098 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP  13. EzSystems\\PlatformUIBundle\\Controller\\SystemInfoController->infoAction() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022, referer: http://ezp5.paulo/shell
          [Tue Feb 17 15:55:52.775105 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP  14. EzSystems\\PlatformUIBundle\\Helper\\SystemInfoHelper->getSystemInfo() /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Controller/SystemInfoController.php:45, referer: http://ezp5.paulo/shell
          

          Show
          Paulo Nunes (Inactive) added a comment - well, i'm not being able to reproduce the issue described in here. I'm always having this error in apache log when accessing "(/shell#/admin/pjax%2Fsysteminfo". Even after applying this issue's fix.... [Tue Feb 17 15:55:52.774934 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP Fatal error: Class 'ezcSystemInfo' not found in /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Helper/SystemInfoHelper.php on line 55, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.774981 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP Stack trace:, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.774997 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775006 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 2. FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->handle() /var/www/html/ezpublish5/web/index.php:81, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775015 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 3. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle() /var/www/html/ezpublish5/vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php:101, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775022 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 4. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->lookup() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:211, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775030 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 5. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->fetch() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:347, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775048 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 6. Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:447, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775056 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 7. Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:60, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775063 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 8. Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:490, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775071 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 9. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2377, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775078 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 10. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3133, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775085 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 11. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2984, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775092 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 12. call_user_func_array:{/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022}() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775098 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 13. EzSystems\\PlatformUIBundle\\Controller\\SystemInfoController->infoAction() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022, referer: http://ezp5.paulo/shell [Tue Feb 17 15:55:52.775105 2015] [:error] [pid 9630] [client 192.168.2.38:58173] PHP 14. EzSystems\\PlatformUIBundle\\Helper\\SystemInfoHelper->getSystemInfo() /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Controller/SystemInfoController.php:45, referer: http://ezp5.paulo/shell
          Hide
          Gunnstein Lye added a comment - - edited

          [~damien.pobel@ez.no] Can you assist here? The error Paulo sees seems unrelated to the fix. Did something break in master recently? CC Petar Spanja

          Current platformui master gives me an empty black screen, no errors in ezpublish or apache logs.

          Show
          Gunnstein Lye added a comment - - edited [~damien.pobel@ez.no] Can you assist here? The error Paulo sees seems unrelated to the fix. Did something break in master recently? CC Petar Spanja Current platformui master gives me an empty black screen, no errors in ezpublish or apache logs.
          Hide
          Paulo Nunes (Inactive) added a comment -

          Test blocked due EZP-24035

          Show
          Paulo Nunes (Inactive) added a comment - Test blocked due EZP-24035
          Hide
          Gunnstein Lye added a comment - - edited

          My black screen is gone after JV's PR https://github.com/ezsystems/PlatformUIBundle/pull/175/files

          Works now. JV's PR seems to be the solution.

          Show
          Gunnstein Lye added a comment - - edited My black screen is gone after JV's PR https://github.com/ezsystems/PlatformUIBundle/pull/175/files Works now. JV's PR seems to be the solution.
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          QA Approved
          Tested on master

          Show
          Paulo Nunes (Inactive) added a comment - - edited QA Approved Tested on master

            People

            • Assignee:
              Unassigned
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours Time Not Required
                4h

                  Agile