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

ezpublish/console debug:event-dispatcher throws a FatalErrorException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.4.5, 16.02
    • Fix Version/s: Customer request, 1.3.0, 5.4.7
    • Component/s: Platform stack
    • Labels:
      None
    • Environment:

      eZ Publish 5.4.5

      Description

      Running php ezpublish/console debug:event-dispatcher will throw a FatalErrorException

      It happens on a fully updated 5.4 environment.

      php ezpublish/console debug:event-dispatcher
      [event_dispatcher] Registered listeners by event
      PHP Fatal error:  Call to a member function getPathInfo() on a non-object in /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Fragment/FragmentListenerFactory.php on line 35
      [2016-02-16 11:31:40] php.CRITICAL: Fatal Error: Call to a member function getPathInfo() on a non-object {"type":1,"file":"/var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Fragment/FragmentListenerFactory.php","line":35,"level":-1,"stack":[]}
       
       
        [Symfony\Component\Debug\Exception\FatalErrorException]
        Error: Call to a member function getPathInfo() on a non-object
       
       
      debug:event-dispatcher [--format FORMAT] [--raw] [--] [<event>]
      

        Activity

        Show
        Joao Inacio (Inactive) added a comment - - edited PR: https://github.com/ezsystems/ezpublish-kernel/pull/1588 (closed, see https://github.com/ezsystems/ezpublish-kernel/pull/1608 ).
        Show
        Bertrand Dunogier added a comment - https://github.com/ezsystems/ezpublish-kernel/pull/1608 merged to: 6.2@c7ceaec (6.2.1) master@00f06b9 (6.3.0)
        Hide
        Bertrand Dunogier added a comment -

        Backported to 5.4@b4e9d56.

        Show
        Bertrand Dunogier added a comment - Backported to 5.4@b4e9d56 .
        Hide
        Rui Silva (Inactive) added a comment -

        Tested and approved by QA for 5.4, 2016.02 and master.

        Show
        Rui Silva (Inactive) added a comment - Tested and approved by QA for 5.4, 2016.02 and master.
        Hide
        Bertrand Dunogier added a comment -

        Updated the fix version, as this wasn't shipped with 5.4.6.

        Show
        Bertrand Dunogier added a comment - Updated the fix version, as this wasn't shipped with 5.4.6.
        Hide
        Gaetano Giunta added a comment -

        I think that the applied fix is wrong.

        I have subclassed the FragmentListener service, adding a setSomething() call to it.
        Now I have a fatal error when runnign from cli:

        PHP Fatal error: Call to a member function setLogger() on null in /home/site/ovumkc/ez5/ezpublish/cache/qa/ezpublishQaDebugProjectContainer.php on line 17995

        The problem is that in the Factory method, when running from cli, you should not return NULL but instead return a fragmentlisteners created with mangling of the fragmentPath...

        Show
        Gaetano Giunta added a comment - I think that the applied fix is wrong. I have subclassed the FragmentListener service, adding a setSomething() call to it. Now I have a fatal error when runnign from cli: PHP Fatal error: Call to a member function setLogger() on null in /home/site/ovumkc/ez5/ezpublish/cache/qa/ezpublishQaDebugProjectContainer.php on line 17995 The problem is that in the Factory method, when running from cli, you should not return NULL but instead return a fragmentlisteners created with mangling of the fragmentPath...

          People

          • Assignee:
            Unassigned
            Reporter:
            Ricardo Correia (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: