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

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2014.05, 2014.07, 5.3.2
    • Fix Version/s: 5.3.3, 2014.11, 5.4.0-beta1
    • Component/s: None
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              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