Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-111

fos:js-routing:debug command throws type error exception

    XMLWordPrintable

Details

    • eZ Platform Enterprise

    Description

      fos:js-routing:debug command throws type error exception.

      Steps:

      1. Install e.g. eZ Platform EE v2.5.17.
      2. Execute command php bin/console fos:js-routing:debug

      Actual result: Exception occurs

      In ExposedRoutesExtractor.php line 25:
      
        Type error: Argument 2 passed to eZ\Bundle\EzPublishCoreBundle\Routing\JsRouting\ExposedRoutesExtractor::__construct() must be an instance of Symfony\Component\HttpFoundation\Request, null given, called in /Users/michalszoltysek/Projects/workspace/ez2.lh/var/cache/
        dev/ContainerXxz5vxs/getEzpublish_JsRouting_ExtractorService.php on line 8
      

      Expected result: Command works without errors.

      Remarks: Affects fos:js-routing:dump also.

      Note:
      In v3.2 and 3.3 there is an error:

      In ExposedRoutesExtractor.php line 49:
      
        Notice: Trying to get property 'attributes' of non-object

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              michal.szoltysek@ibexa.co Michał Szołtysek
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: