CMS page Data Upgrade failed
In the reference to this commit https://github.com/magento/magento2/commit/3b9511f682522f9b6dd99634f46a1604323925b0
Steps to reproduce
- Migrate data from Magento 1.x to 2.0.7 using Magento data migration tool version 2.0.7
- There is no CMS page with ID 4 in database. In some cases the page with the ID 4 may contain the data not the one that supposed to be seen, i.e. absolutely different page identifier but not 'privacy-policy-cookie-restriction-mode'
- Upgrade Magento from 2.0.7 to 2.1.0.
Expected result
- The page should be loaded by identifier not ID
- Update page content if it exists
- Skip page updating / create new page if identifier is not exists.
- Setup data upgrade script shouldn't be crashed.
Actual result
Setup data upgrade fails with the exception:
[Magento\Framework\Exception\LocalizedException]
The page URL key contains capital letters or disallowed symbols.
@martinboy if this issue is specific to migration process, please, create a ticket in corresponding repository: https://github.com/magento/data-migration-tool/issues
@martinboy Did you ever resolve the issue? I am facing the same thing.
@jarhody just manually edited the file app/code/Magento/Cms/Setup/UpgradeData.php and removed CMS page creation code
@veloraven it is not a migration specific issue but reproduced when I migrated the data. You can reproduce it like this:
- Setup Magento 2.0.7
- Remove CMS page with ID 4 from database.
- Upgrade Magento from 2.0.7 to 2.1.0.
Hi @martinboy
I was unable to reproduce this issue using 2.0.9 ->2.1.1 upgrade flow. Could you please try to reproduce this on your local machine?
This looks fixed in https://github.com/magento/magento2/commit/ae05195601f91d8fc0ccb98ea477dfb87547d0d4
Closed.