Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP FATAL error during data migration #126

Closed
onepack opened this issue Aug 1, 2016 · 8 comments
Closed

PHP FATAL error during data migration #126

onepack opened this issue Aug 1, 2016 · 8 comments

Comments

@onepack
Copy link

onepack commented Aug 1, 2016

We have been running into this error for many times now and no matter what we do it stays.
Magento: 1.9.2.2 to magento 2.1.0 migration
PHP 7.0.8
CENTOS 7
Cleared compiled files and cache.

System settings runs ok but Data migration keeps on giving this error:

100% [============================] Remaining Time: 1 sec
[2016-08-01 20:36:54][INFO][mode: data][stage: integrity check][step: PostProcessing Step]: started
0% [>---------------------------] Remaining Time: 1 sec PHP Fatal error: Uncaught Error: Call to a member function getStructure() on boolean in /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Step/PostProcessing/Integrity.php:85
Stack trace:
#0 /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Step/PostProcessing/Integrity.php(70): Migration\Step\PostProcessing\Integrity->checkFields(Array, 'destination')
#1 /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Mode/AbstractMode.php(73): Migration\Step\PostProcessing\Integrity->perform()
#2 /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Mode/Data.php(88): Migration\Mode\AbstractMode->runStage(Object(Migration\Step\PostProcessing\Integrity), 'PostProcessing ...', 'integrity check')
#3 /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Mode/Data.php(61): Migration\Mode\Data->runIntegrity(Object(Migration\App\Mode\StepList))
#4 /apps/web/dev.site in /apps/web/dev.site.com/public_html/vendor/magento/data-migration-tool/src/Migration/Step/PostProcessing/Integrity.php on line 85

@onepack onepack changed the title PHP FATAL error in data migration PHP FATAL error during data migration Aug 1, 2016
@victor-v-rad
Copy link
Collaborator

Getting such error could mean you do not have one of the next tables in your Magento 2 DB:
catalog_product_entity_datetime
catalog_product_entity_decimal
catalog_product_entity_int
catalog_product_entity_text
catalog_product_entity_varchar
Please check this out

@onepack
Copy link
Author

onepack commented Aug 2, 2016

They are all in place.
It is a database that is not running on the same server and the tables are prefixed.
Could this be the related to this issue?
Importing the settings was no problem though.

sow_catalog_product_entity |
| sow_catalog_product_entity_datetime |
| sow_catalog_product_entity_decimal |
| sow_catalog_product_entity_gallery |
| sow_catalog_product_entity_int |
| sow_catalog_product_entity_media_gallery |
| sow_catalog_product_entity_media_gallery_value |
| sow_catalog_product_entity_media_gallery_value_to_entity |
| sow_catalog_product_entity_media_gallery_value_video |
| sow_catalog_product_entity_text |
| sow_catalog_product_entity_tier_price |
| sow_catalog_product_entity_varchar

@victor-v-rad
Copy link
Collaborator

Specify prefix for tables in Magento 1 and 2 in your config.xml > source_prefix and dest_prefix
I see \Migration\Step\PostProcessing\Helper::getProductDestinationDocumentFields should return table names with prefix

@onepack
Copy link
Author

onepack commented Aug 2, 2016

This is what is defined in the config.xml under options

    <options>
        <source_prefix />
        <dest_prefix>sow_</dest_prefix>
</options>

Please let me know if this should be different.

@onepack
Copy link
Author

onepack commented Aug 2, 2016

I have changed the config like this but logically with the same result.

<options>
        <source_prefix></source_prefix>
        <dest_prefix>sow_</dest_prefix>
</options>

@onepack
Copy link
Author

onepack commented Aug 2, 2016

We made a complete new installation and started all over again.
This time it was more successful however other issues appeared after the migration that I will log in a different case is not logged already.

@onepack onepack closed this as completed Aug 2, 2016
@cristianclick01
Copy link

I have the same issue...
How you @onepack solved the error?

@phudu25
Copy link

phudu25 commented Oct 7, 2016

I have the same problem when trying to migration data from 1901 to 211...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants