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

Fatal error when accessing system info in admin panel tab

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 2015.01
    • Fix Version/s: QA tracked issues, 2015.01
    • Labels:
      None
    • Environment:

      Operating System: CentOS 7.0 x64
      PHP Version: 5.4.16
      Database and version: Mariadb 5.5
      Browser (and version): Firefox 35

      Description

      Hi,

      When accessing System inofmration on Admin panel, i have an error that refers

      An error has occurred
      Failed to load '/pjax/systeminfo' 
      

      On apache log i have

      [Wed Feb 18 15:41:18.636781 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.636836 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP Stack trace:, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.636933 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP   1. {main}() /var/www/html/ezpublish5/web/index.php:0, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.636956 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP   2. FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->handle() /var/www/html/ezpublish5/web/index.php:81, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.636970 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.636982 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.636995 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.637008 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.637021 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.637050 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.637063 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP   9. Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2377, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.637074 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP  10. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3133, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.637085 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP  11. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:2984, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.637095 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      [Wed Feb 18 15:41:18.637106 2015] [:error] [pid 12779] [client 192.168.2.38:61314] PHP  13. EzSystems\\PlatformUIBundle\\Controller\\SystemInfoController->infoAction() /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022, referer: http://ezp5.paulo/shell
      [Wed Feb 18 15:41:18.637118 2015] [:error] [pid 12779] [client 192.168.2.38:61314] 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
      

      On prod.log, the information is equivalent to the apache log

      [2015-02-18 15:48:44] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess. [] []
      [2015-02-18 15:48:44] request.INFO: Matched route "admin_systeminfo" (parameters: "_controller": "ezsystems.platformui.controller.systeminfo:infoAction", "_route": "admin_systeminfo") [] []
      [2015-02-18 15:48:44] security.DEBUG: Read SecurityContext from the session [] []
      [2015-02-18 15:48:44] security.DEBUG: Reloading user from user provider. [] []
      [2015-02-18 15:48:44] security.DEBUG: Username "admin" was reloaded from user provider. [] []
      [2015-02-18 15:48:44] php.EMERGENCY: Fatal Error: Class 'ezcSystemInfo' not found {"type":1,"file":"/var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Helper/SystemInfoHelper.php","line":55,"level":22527,"stack":[{"function":"getSystemInfo","type":"->","class":"EzSystems\\PlatformUIBundle\\Helper\\SystemInfoHelper","file":"/var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Controller/SystemInfoController.php","line":45,"args":[]},{"function":"infoAction","type":"->","class":"EzSystems\\PlatformUIBundle\\Controller\\SystemInfoController","file":"/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache","line":3022,"args":[]},{"function":"call_user_func_array:{/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache:3022}","file":"/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache","line":3022,"args":[]},{"function":"handleRaw","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpKernel","file":"/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache","line":2984,"args":[]},{"function":"handle","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpKernel","file":"/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache","line":3133,"args":[]},{"function":"handle","type":"->","class":"Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel","file":"/var/www/html/ezpublish5/ezpublish/bootstrap.php.cache","line":2377,"args":[]},{"function":"handle","type":"->","class":"Symfony\\Component\\HttpKernel\\Kernel","file":"/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php","line":490,"args":[]},{"function":"forward","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache","file":"/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php","line":60,"args":[]},{"function":"forward","type":"->","class":"Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache","file":"/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php","line":447,"args":[]},{"function":"fetch","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache","file":"/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php","line":347,"args":[]},{"function":"lookup","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache","file":"/var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php","line":211,"args":[]},{"function":"handle","type":"->","class":"Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache","file":"/var/www/html/ezpublish5/vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php","line":101,"args":[]},{"function":"handle","type":"->","class":"FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache","file":"/var/www/html/ezpublish5/web/index.php","line":81,"args":[]},{"function":"{main}","file":"/var/www/html/ezpublish5/web/index.php","line":0,"args":[]}]} []
      [2015-02-18 15:48:44] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "ezcSystemInfo" from the global namespace. Did you forget a "use" statement?" at /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Helper/SystemInfoHelper.php line 55 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"ezcSystemInfo\" from the global namespace.\nDid you forget a \"use\" statement? at /var/www/html/ezpublish5/vendor/ezsystems/platform-ui-bundle/Helper/SystemInfoHelper.php:55)"} []
      [2015-02-18 15:48:44] security.DEBUG: Write SecurityContext in the session [] []
      

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          It's a missing dependency on zetacomponents/system-information.
          Quick fix is to add it in main composer.json.

          Show
          Jérôme Vieilledent (Inactive) added a comment - It's a missing dependency on zetacomponents/system-information . Quick fix is to add it in main composer.json.
          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/175
          Hide
          Paulo Nunes (Inactive) added a comment -

          The fix above seems to solve the reported fatal error.

          Show
          Paulo Nunes (Inactive) added a comment - The fix above seems to solve the reported fatal error.
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/PlatformUIBundle/pull/175

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: