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

Studio UI throws Notice: Undefined index: <siteaccess_name>

    XMLWordPrintable

Details

    Description

      Studio UI throws Notice: Undefined index: <siteaccess_name> when accessing /ez

      Consider this configuration:

          siteaccess:
              list:
                - portal_english
                - portal_french
                - site
              groups:
                  site_group:
                      - portal_french
                      - site
                      - portal_english
      
              default_siteaccess: portal_english
      
              match:
      #            URIElement: 1               //This line has been intentionally commented
                  Compound\LogicalAnd:
                      portal_english:
                          matchers:
                              Map\URI:
                                  en: true
                              Map\Host:
                                  ezenterprise161-studio-clean.local: true
                          match: portal_english
                      french:
                          matchers:
                              Map\URI:
                                  french: true
                                  fr: true
                              Map\Host:
                                  ezenterprise161-studio-clean.local: true
                          match: portal_french
      
                  Map\Host:
                      ezenterprise161-studio-clean.local: portal_english
      
      (...)
      

      Accessing from http://ezenterprise161-studio-clean.local/ez the result will be:

      Notice: Undefined index: portal_english
      500 Internal Server Error - ContextErrorException

      Some matches were considered, as the array shows, but the system returns Undefined index: portal_english

      [1] Symfony\Component\Debug\Exception\ContextErrorException: Notice: Undefined index: portal_english
          at n/a
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Compound/LogicalAnd.php line 46
      
          at Symfony\Component\Debug\ErrorHandler->handleError('8', 'Undefined index: portal_english', '/var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Compound/LogicalAnd.php', '46', array('siteAccessName' => 'portal_english', 'i' => 'portal_english', 'rule' => array('matchers' => array('Map\URI' => array('en' => true), 'Map\Host' => array('ezenterprise161-studio-clean.local' => true)), 'match' => 'portal_english'), 'subMatchers' => array(), 'this' => object(LogicalAnd)))
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Compound/LogicalAnd.php line 46
      
          at eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Compound\LogicalAnd->reverseMatch('portal_english')
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/studio-ui-bundle/SiteAccess/ReverseMatcher.php line 55
      
          at EzSystems\StudioUIBundle\SiteAccess\ReverseMatcher->getMatcher('portal_english')
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/studio-ui-bundle/SiteAccess/ReverseMatcher.php line 64
      
          at EzSystems\StudioUIBundle\SiteAccess\ReverseMatcher->getUrlParts('portal_english')
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/studio-ui-bundle/SiteAccess/ReverseMatcher.php line 95
      
          at EzSystems\StudioUIBundle\SiteAccess\ReverseMatcher->getUrlRoot('portal_english')
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/studio-ui-bundle/ApplicationConfig/Providers/SiteAccesses.php line 42
      
          at EzSystems\StudioUIBundle\ApplicationConfig\Providers\SiteAccesses->getConfig()
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/platform-ui-bundle/ApplicationConfig/Aggregator.php line 33
      
          at EzSystems\PlatformUIBundle\ApplicationConfig\Aggregator->getConfig()
              in /var/www/html/ezenterprise161_studio_clean/vendor/ezsystems/platform-ui-bundle/Controller/PlatformUIController.php line 43
      
          at EzSystems\PlatformUIBundle\Controller\PlatformUIController->shellAction()
              in  line 
      
          at call_user_func_array(array(object(PlatformUIController), 'shellAction'), array())
              in /var/www/html/ezenterprise161_studio_clean/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 144
      
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/html/ezenterprise161_studio_clean/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 64
      
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezenterprise161_studio_clean/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69
      
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezenterprise161_studio_clean/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185
      
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
              in /var/www/html/ezenterprise161_studio_clean/web/app.php line 67
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: