Details
-
Bug
-
Resolution: Done
-
Medium
-
2.5.14
-
None
Description
You won't be able to run the landingpage -> pagebuilder migration on a database which contains internal drafts:
$ php -d memory_limit=512M bin/console ezplatform:page:migrate -v (...) In Mapper.php line 365: [Symfony\Component\Debug\Exception\ContextErrorException] Notice: Undefined index: 572_1701 Exception trace: at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:365 eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractVersionInfoListFromRows() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/TreeHandler.php:144 eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler->listVersions() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php:695 eZ\Publish\Core\Persistence\Legacy\Content\Handler->listVersions() at /var/www/var/cache/dev/Container9y3vqxc/Handler_029207d.php:210 Handler_029207d->listVersions() at n/a:n/a array_map() at /var/www/vendor/ezsystems/ezplatform-page-migration/src/bundle/Command/MigrateDataCommand.php:148 EzSystems\EzPlatformPageMigrationBundle\Command\MigrateDataCommand->execute() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255 Symfony\Component\Console\Command\Command->run() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:1005 Symfony\Component\Console\Application->doRunCommand() at /var/www/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:255 Symfony\Component\Console\Application->doRun() at /var/www/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:74 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:50 eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:148 Symfony\Component\Console\Application->run() at /var/www/bin/console:36 ezplatform:page:migrate [--dry-run] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--siteaccess [SITEACCESS]] [--] <command>
The reason is that it seems internal drafts may not have a name yet ( no row in ezcontentobject_name table ).