Details
-
Bug
-
Resolution: Fixed
-
High
-
dev-master
-
None
-
Operating System: CentOS 7.0 x64
PHP Version: 5.4.16
Database and version: Mariadb 5.5
Description
When trying to index contents in Solr it fails with the following error:
Full stack trace:
[eZ\Publish\Core\IO\Exception\InvalidBinaryFileIdException] Argument 'BinaryFile::id' is invalid: 'var/ezdemo_site/storage/images/media/images/funel/512-1-eng-GB/funel.png' is wrong value in class 'BinaryFile' () at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlDecorator/Prefix.php:57 eZ\Publish\Core\IO\UrlDecorator\Prefix->undecorate() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlRedecorator.php:37 eZ\Publish\Core\IO\UrlRedecorator->redecorateFromTarget() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/ImageConverter.php:205 eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter->parseLegacyXml() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/ImageConverter.php:173 eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter->toFieldValue() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:419 eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldValueFromRow() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:382 eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldFromRow() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:212 eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractContentFromRows() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php:327 eZ\Publish\Core\Persistence\Legacy\Content\Handler->load() at /var/www/html/ezpublish52/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php:46788 eZPublishCorePersistenceLegacyContentHandler_000000000be21d18000000009a607a1b701b3ea8c4d40e4949797ef14332339d->load() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentHandler.php:70 eZ\Publish\Core\Persistence\Cache\ContentHandler->load() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishSolrSearchEngineBundle/Command/SolrCreateIndexCommand.php:91 eZ\Bundle\EzPublishSolrSearchEngineBundle\Command\SolrCreateIndexCommand->execute() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259 Symfony\Component\Console\Command\Command->run() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:886 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:195 Symfony\Component\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41 eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /var/www/html/ezpublish52/ezpublish/console:27
this exception happens in the ezpublish indexing script and in the Solr output nothing is shown
It always fails if there are any images in ezpublish and images only, videos and other media don't seem to be causing this. I managed to index the contents only after deleting all the images
Attachments
Issue Links
- testing discovered
-
EZP-24771 Solr should only index published content
- Closed