Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2941

Too few arguments to function eZ\Publish\Core\MVC\Symfony\SiteAccess in AdminExceptionListener

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.0.0-beta4
    • 3.0.x-dev
    • None
    • None

    Description

      Setup:

      APP_ENV=dev
      APP_DEBUG=1
      

      Steps to reproduce:

      1. Login as admin
      2. Go to Admin -> Roles -> Anonymous
      3. Delete the content/read policy from admin
      4. Go to "Page"

      Result:

      Too few arguments to
       function eZ\Publish\Core\MVC\Symfony\SiteAccess::__construct(), 0
      passed in
      /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/ezplatform-admin-ui/src/lib/EventListener/AdminExceptionListener.php
       on line 137 and at least 1 expected 

      Might be caused by https://github.com/ezsystems/ezpublish-kernel/pull/2838, which changed the SiteAccess constructor without adjusting https://github.com/ezsystems/ezplatform-admin-ui/blob/master/src/lib/EventListener/AdminExceptionListener.php#L137

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: