Details
-
Bug
-
Resolution: Fixed
-
High
-
None
Description
When I try to update ContentType using eZ Publish API I'm getting: `undefined offset` issue. This might occur after migration from legacy system.
#0 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php(224): Symfony\Component\Debug\ErrorHandler->handleError(8, 'Undefined offse...', '/Users/clash82/...', 224, Array) #1 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/ContentUpdater/Action/AddField.php(96): eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractContentFromRows(Array, Array) #2 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/ContentUpdater.php(141): eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField->apply('57') #3 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Update/Handler/DoctrineDatabase.php(56): eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater->applyUpdates(23, Array) #4 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php(596): eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\DoctrineDatabase->updateContentObjects(Object(eZ\Publish\SPI\Persistence\Content\Type), Object(eZ\Publish\SPI\Persistence\Content\Type)) #5 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/MemoryCachingHandler.php(423): eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler->publish(23) #6 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentTypeHandler.php(358): eZ\Publish\Core\Persistence\Legacy\Content\Type\MemoryCachingHandler->publish(23) #7 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php(1820): eZ\Publish\Core\Persistence\Cache\ContentTypeHandler->publish(23) #8 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentTypeService.php(530): eZ\Publish\Core\Repository\ContentTypeService->publishContentTypeDraft(Object(eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft)) #9 /Users/clash82/Documents/workspace/ezno.lh/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php(35497): eZ\Publish\Core\SignalSlot\ContentTypeService->publishContentTypeDraft(Object(eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft)) #10 /Users/clash82/Documents/workspace/ezno.lh/src/Novactive/Bundle/eZSEOBundle/Installer/Field.php(92): eZPublishCoreRepositoryContentTypeService_000000004ab6281b00000001489ccf2200626585e6aededc97ea0d7acafc1296->publishContentTypeDraft(Object(eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft)) #11 /Users/clash82/Documents/workspace/ezno.lh/src/Novactive/Bundle/eZSEOBundle/Command/ConvertXrow2NovaCommand.php(189): Novactive\Bundle\eZSEOBundle\Installer\Field->addToContentType('metas', Object(eZ\Publish\Core\Repository\Values\ContentType\ContentType)) #12 /Users/clash82/Documents/workspace/ezno.lh/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(256): Novactive\Bundle\eZSEOBundle\Command\ConvertXrow2NovaCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /Users/clash82/Documents/workspace/ezno.lh/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(849): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /Users/clash82/Documents/workspace/ezno.lh/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(189): Symfony\Component\Console\Application->doRunCommand(Object(Novactive\Bundle\eZSEOBundle\Command\ConvertXrow2NovaCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /Users/clash82/Documents/workspace/ezno.lh/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(90): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /Users/clash82/Documents/workspace/ezno.lh/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php(41): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 /Users/clash82/Documents/workspace/ezno.lh/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(120): eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #18 /Users/clash82/Documents/workspace/ezno.lh/ezpublish/console(27): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput)) #19 {main}