magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

CMS page Data Upgrade failed

Open martinboy opened this issue 10 years ago • 6 comments

In the reference to this commit https://github.com/magento/magento2/commit/3b9511f682522f9b6dd99634f46a1604323925b0

Steps to reproduce

  1. Migrate data from Magento 1.x to 2.0.7 using Magento data migration tool version 2.0.7
  2. 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'
  3. Upgrade Magento from 2.0.7 to 2.1.0.

Expected result

  1. The page should be loaded by identifier not ID
  2. Update page content if it exists
  3. Skip page updating / create new page if identifier is not exists.
  4. 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 avatar Jul 04 '16 07:07 martinboy

@martinboy if this issue is specific to migration process, please, create a ticket in corresponding repository: https://github.com/magento/data-migration-tool/issues

veloraven avatar Aug 11 '16 13:08 veloraven

@martinboy Did you ever resolve the issue? I am facing the same thing.

jarhody avatar Aug 25 '16 19:08 jarhody

@jarhody just manually edited the file app/code/Magento/Cms/Setup/UpgradeData.php and removed CMS page creation code

martinboy avatar Aug 26 '16 06:08 martinboy

@veloraven it is not a migration specific issue but reproduced when I migrated the data. You can reproduce it like this:

  1. Setup Magento 2.0.7
  2. Remove CMS page with ID 4 from database.
  3. Upgrade Magento from 2.0.7 to 2.1.0.

martinboy avatar Aug 26 '16 07:08 martinboy

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?

shiftedreality avatar Sep 07 '16 14:09 shiftedreality

This looks fixed in https://github.com/magento/magento2/commit/ae05195601f91d8fc0ccb98ea477dfb87547d0d4

Closed.

shiftedreality avatar Sep 07 '16 14:09 shiftedreality