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

SPI cache error on URL alias

    XMLWordPrintable

Details

    Description

      When you create an URL Alias (global or local), it is listed when requesting it for a Location or through the global list, but loading the alias will fail. Error message from REST:

      <?xml version="1.0" encoding="UTF-8"?>
      <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml">
       <errorCode>500</errorCode>
       <errorMessage>Internal Server Error</errorMessage>
       <errorDescription>Warning: Invalid argument supplied for foreach() in /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php line 297</errorDescription>
       <trace>#0 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php(297): Symfony\Component\HttpKernel\Debug\ErrorHandler-&gt;handle(2, 'Invalid argumen...', '/home/bertrand/...', 297, Array)
      #1 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php(645): eZ\Publish\Core\Repository\URLAliasService-&gt;extractPath(Object(eZ\Publish\SPI\Persistence\Content\UrlAlias), NULL)
      #2 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/SignalSlot/URLAliasService.php(213): eZ\Publish\Core\Repository\URLAliasService-&gt;load('0-ccc868edfaf83...')
      #3 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/REST/Server/Controller/URLAlias.php(60): eZ\Publish\Core\SignalSlot\URLAliasService-&gt;load('0-ccc868edfaf83...')
      #4 [internal function]: eZ\Publish\Core\REST\Server\Controller\URLAlias-&gt;loadURLAlias()
      #5 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(129): call_user_func_array(Array, Array)
      #6 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(73): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
      #7 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php(57): Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #8 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(197): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #9 /home/bertrand/www/ezpublish5/web/index.php(59): Symfony\Component\HttpKernel\Kernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request))
      #10 /home/bertrand/www/ezpublish5/web/index_dev.php(3): require('/home/bertrand/...')
      #11 {main}</trace>
       <file>/home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php</file>
       <line>297</line>
      </ErrorMessage>
      

      The errors will stop happening when the SPI cache has been cleared.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: