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

ez_route() operator in preview causes PHP Fatal error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 5.3.3, 2014.11, 5.4.0-beta1
    • 2014.05, 2014.07, 5.3.2
    • None
    • None

    Description

      When using the ez_route() operator without a resource (location, etc) in content preview (legacy admin siteaccess), the request will fail with a PHP fatal error:

      PHP Fatal error:  Unsupported operand types in /var/www/ezpublish/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Routing/Generator/RouteReferenceGenerator.php on line 54
      

      Reference: https://doc.ez.no/display/EZP/RouteReference

      Notes:

      It seems that there is no '_route_params' attribute (or even '_route' ) under the preview "internal" request, which causes the following php code to be invalid (array + null):

      $params += $this->request->attributes->get( '_route_params' );
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d