Details
-
Bug
-
Resolution: Duplicate
-
High
-
5.3-dev
-
None
-
Operating System: CentOS 6.5 x64
PHP Version: 5.3.3
Database and version: Mysql 5.1.73
Browser (and version): Firefox 28
Description
Hi,
previewing an object that hasn't been published, that has na image, raises an exception
CRITICAL - Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\InvalidArgumentException: "Argument '$id' is invalid: Prefix images not found in images-versioned/259/1-eng-GB/New-articleasd3.jpg" at /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/IOService.php line 357
Steps to reproduce:
- create an article (don't publish it)
- upload one image
- Preview the article
Note: Besides ez demo, this issue also happens in ezflow. So, it's slightly different from EZP-22642, that only happens in eZ Demo.
The stack trace:
[1] eZ\Publish\Core\Base\Exceptions\InvalidArgumentException: Argument '$id' is invalid: Prefix images not found in images-versioned/259/1-eng-GB/New-articleasd3.jpg at n/a in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/IOService.php line 357 at eZ\Publish\Core\IO\IOService->removeUriPrefix('images-versioned/259/1-eng-GB/New-articleasd3.jpg') in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/IOService.php line 248 at eZ\Publish\Core\IO\IOService->getExternalPath('var/ezflow_site/storage/images-versioned/259/1-eng-GB/New-articleasd3.jpg') in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/Image/ImageStorage.php line 214 at eZ\Publish\Core\FieldType\Image\ImageStorage->getFieldData(object(VersionInfo), object(Field), array('identifier' => 'LegacyStorage', 'connection' => object(eZPublishCorePersistenceDoctrineConnectionHandler_000000007ae2778100000000c6eefd73))) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/StorageHandler.php line 95 at eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler->getFieldData(object(VersionInfo), object(Field)) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldHandler.php line 340 at eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler->loadExternalFieldData(object(Content)) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php line 330 at eZ\Publish\Core\Persistence\Legacy\Content\Handler->load('62', '1', array('eng-GB')) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentHandler.php line 64 at eZ\Publish\Core\Persistence\Cache\ContentHandler->load('62', '1', array('eng-GB')) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 379 at eZ\Publish\Core\Repository\ContentService->internalLoadContent('62', array('eng-GB'), '1') in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 325 at eZ\Publish\Core\Repository\ContentService->loadContent('62', array('eng-GB'), '1') in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php line 191 at eZ\Publish\Core\SignalSlot\ContentService->loadContent('62', array('eng-GB'), '1') in /var/www/ezpublish5/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php line 21040 at eZPublishCoreRepositoryContentService_000000007ae274f100000000c6eefd73->loadContent('62', array('eng-GB'), '1') in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php line 74 at eZ\Publish\Core\MVC\Symfony\Controller\Content\PreviewController->previewContentAction('62', '1', 'eng-GB', 'ezflow_site') in line at call_user_func_array(array(object(PreviewController), 'previewContentAction'), array('62', '1', 'eng-GB', 'ezflow_site')) in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 187 at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true) in /var/www/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67 at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request)) in /var/www/ezpublish5/web/index.php line 77
Attachments
Issue Links
- is duplicated by
-
EZP-22781 Exception when loading content with image with '/images-versioned/' path
- Closed