When running delta migration in step 3 we get this error:
PHP Error[2]: Creating default object from empty value in file /srv/public_html/pub/ub-tool/protected/controllers/Step3Controller.php at line 586
Any idea?
3 answers
Hi there,
PHP Error[2]: Creating default object from empty value in file /srv/public_html/pub/ub-tool/protected/controllers/Step3Controller.php at line 586
It seem you have deleted at least one Attribute set or Attribute group or Attribute after the first migration.
Let’s try do steps below:
+ Run below SQL in your M2 database:
DELETE FROM ub_migrate_map_step_3_attribute WHERE entity_name = 'eav_attribute' AND m2_id NOT IN (SELECT attribute_id FROM eav_attribute);
DELETE FROM ub_migrate_map_step_3_attribute_option WHERE entity_name = 'eav_attribute_option' AND m2_id NOT IN (SELECT option_id FROM eav_attribute_option);
+ Clean the cache of our migration tool by run command: rm -rf pub/ub-tool/protected/runtime/cache/
Once done, continue with data migration in the step #3 by run CLI command:
php -f bin/ubdatamigration run --step=3
Regards,
Mall.
Thanks!
Hi Henrik,
Glad it helps. We have this ticket closed for now.
Regards,
Ubertheme team