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

Clearing image aliases with Symfony console with --purge option results in PHP warnings

    XMLWordPrintable

    Details

      Description

      Running the following

      php ezpublish/console ezpublish:legacy:script bin/php/ezcache.php --clear-id=imagealias --purge
      

      through Symfony console to purge all image aliases results in PHP warnings like one below:

      PHP Warning:  pathinfo() expects parameter 1 to be string, object given in /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/IORepositoryResolver.php on line 125
      PHP Stack trace:
      PHP   1. {main}() /var/www/html/netgensite/ezpublish/console:0
      PHP   2. Symfony\Component\Console\Application->run() /var/www/html/netgensite/ezpublish/console:27
      PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/html/netgensite/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
      PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
      PHP   5. Symfony\Component\Console\Application->doRun() /var/www/html/netgensite/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
      PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/html/netgensite/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
      PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/html/netgensite/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:896
      PHP   8. eZ\Bundle\EzPublishLegacyBundle\Command\LegacyEmbedScriptCommand->execute() /var/www/html/netgensite/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
      PHP   9. eZ\Publish\Core\MVC\Legacy\Kernel->run() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Command/LegacyEmbedScriptCommand.php:80
      PHP  10. ezpKernel->run() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php:133
      PHP  11. eZ\Publish\Core\MVC\Legacy\Kernel\CLIHandler->run() /var/www/html/netgensite/ezpublish_legacy/kernel/private/classes/ezpkernel.php:53
      PHP  12. include() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/CLIHandler.php:128
      PHP  13. eZCacheHelper->purgeItems() /var/www/html/netgensite/ezpublish_legacy/bin/php/ezcache.php:149
      PHP  14. eZCacheHelper->internalClear() /var/www/html/netgensite/ezpublish_legacy/lib/ezutils/classes/ezcachehelper.php:36
      PHP  15. eZCache::clearItem() /var/www/html/netgensite/ezpublish_legacy/lib/ezutils/classes/ezcachehelper.php:129
      PHP  16. call_user_func_array:{/var/www/html/netgensite/ezpublish_legacy/kernel/classes/ezcache.php:493}() /var/www/html/netgensite/ezpublish_legacy/kernel/classes/ezcache.php:493
      PHP  17. eZCache::purgeImageAlias() /var/www/html/netgensite/ezpublish_legacy/kernel/classes/ezcache.php:493
      PHP  18. eZCache::purgeImageAliasForObject() /var/www/html/netgensite/ezpublish_legacy/kernel/classes/ezcache.php:609
      PHP  19. eZImageAliasHandler->purgeAllAliases() /var/www/html/netgensite/ezpublish_legacy/kernel/classes/ezcache.php:640
      PHP  20. ezpEvent->notify() /var/www/html/netgensite/ezpublish_legacy/kernel/classes/datatypes/ezimage/ezimagealiashandler.php:686
      PHP  21. call_user_func_array:{/var/www/html/netgensite/ezpublish_legacy/kernel/private/classes/ezpevent.php:138}() /var/www/html/netgensite/ezpublish_legacy/kernel/private/classes/ezpevent.php:138
      PHP  22. eZPublishCoreMVCLegacyImageAliasCleaner_000000005ee8db8d000000004a8bb5ec->removeAliases() /var/www/html/netgensite/ezpublish_legacy/kernel/private/classes/ezpevent.php:138
      PHP  23. eZ\Publish\Core\MVC\Legacy\Image\AliasCleaner->removeAliases() /var/www/html/netgensite/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php:36642
      PHP  24. eZBundleEzPublishCoreBundleImagineAliasCleaner_000000005ee8db24000000004a8bb5ec->removeAliases() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Image/AliasCleaner.php:50
      PHP  25. eZ\Bundle\EzPublishCoreBundle\Imagine\AliasCleaner->removeAliases() /var/www/html/netgensite/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php:35580
      PHP  26. eZ\Bundle\EzPublishCoreBundle\Imagine\IORepositoryResolver->remove() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/AliasCleaner.php:29
      PHP  27. eZ\Bundle\EzPublishCoreBundle\Imagine\IORepositoryResolver->getFilePath() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/IORepositoryResolver.php:100
      PHP  28. pathinfo() /var/www/html/netgensite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Imagine/IORepositoryResolver.php:125
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              edi.modric Edi Modrić
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: