Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-1937

Migrating legacy Page field (ezflow) to Landing Page (Enterprise) to not work in eZ Platform 1.10 and later

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.1.0
    • None

    Description

      I try to run the ezflow:migrate command in ezsystems/ezflow-migration-toolkit as described here

      but this migration tools seems to be broken since this commit introduced in 1.10

      bin/console ezflow:migrate /var/www/external/ezpublish_legacy/ --ini=extension/ezdemo/settings/block.ini.append.php -v
      [Migration] [07:53:25] Migrtion log: src/MigrationBundle/migration.log
                                                                              
            The migration script will operate on your current database.       
         Make sure to back up your database in case of an unexpected error.   
                                                                              
      
      Current database: ezp@db
      
      Are you sure? (yes/no) [default: no]  yes
      
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZLog has a deprecated constructor in /var/www/external/ezpublish_legacy/lib/ezfile/classes/ezlog.php on line 19
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZTextCodec has a deprecated constructor in /var/www/external/ezpublish_legacy/lib/ezi18n/classes/eztextcodec.php on line 22
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZINI has a deprecated constructor in /var/www/external/ezpublish_legacy/lib/ezutils/classes/ezini.php on line 44
      [Migration] [07:53:33] Loading pages from database: ezp@db
      [Migration] [07:53:33] Reading legacy block configuration
      [Migration] [07:53:33] Migrating page...
      [Migration] [07:53:33] ContentId: 57, FieldId: 187, Version: 1
      [Migration] [07:53:33] 2 in 2ZonesLayout1 layout found
      [Migration] [07:53:33] Trying to map Campaign block to one of used in eZ Studio
      
      In BlockMapper.php line 36:
                                                                                                                                                                 
        [Symfony\Component\Debug\Exception\ClassNotFoundException]                                                                                               
        Attempted to load class "Item" from namespace "EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\Block".                                  
        Did you forget a "use" statement for e.g. "eZ\Publish\Core\FieldType\Page\Parts\Item" or "EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Mo  
        del\Block\ScheduleBlock\Item\Item"?                                                                                                                      
                                                                                                                                                                 
      
      Exception trace:
       EzSystems\EzFlowMigrationToolkit\Mapper\BlockMapper->map() at /var/www/external/ezflow-migration-toolkit/lib/HelperObject/Page.php:111
       EzSystems\EzFlowMigrationToolkit\HelperObject\Page->getLandingPage() at /var/www/external/ezflow-migration-toolkit/bundle/Command/EzFlowMigrateCommand.php:129
       EzSystems\EzFlowMigrationToolkitBundle\Command\EzFlowMigrateCommand->execute() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
       Symfony\Component\Console\Command\Command->run() at /var/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:964
       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:248
       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/symfony/symfony/src/Symfony/Component/Console/Application.php:148
       Symfony\Component\Console\Application->run() at /var/www/bin/console:31
      
      ezflow:migrate [--ini INI] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--siteaccess [SITEACCESS]] [--] <command> <legacy_path>
      

      As you can see there are also some php 7 related warnings(regarding constructors). Also, this change is needed in ezsystems/ezflow-migration-toolkit's composer.json in order to make it installable on ezplatform 2.1

      -    "ezsystems/ezpublish-kernel": "^6.3",
      -    "ezsystems/landing-page-fieldtype-bundle": "~1.3"
      +    "ezsystems/ezpublish-kernel": "^6.3 || ^7.0",
      +    "ezsystems/landing-page-fieldtype-bundle": "~1.3 || ^2.0"
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: