The error it returns is:
PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step3Controller.php at line 591
I tried the solution presented here to no avail. Any ideas?
3 answers
Hi Stefen,
I tried the solution presented here to no avail. Any ideas?
I couldn’t access the ‘here’ link you mentioned.
PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step3Controller.php at line 591
To solve that issue, you can try with these steps:
+ Run the following SQL queries in your M2 database:
DELETE FROM ub_migrate_map_step_3 WHERE entity_name = 'eav_attribute_group' AND m2_id NOT IN (SELECT attribute_group_id FROM eav_attribute_group);
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);
+ Once done, you can continue with the data migration in step #3:
php -f bin/ubdatamigration run --step=3
And let me know how it goes then.
Regards,
Mall.
Hey Mall, Thanks for the response. I ran the query but 0 rows were affected and the command line still gives me the same error “PHP Error[2]: Creating default object from empty value in file /srv/public_html/pub/ub-tool/protected/controllers/Step3Controller.php at line 591”
Any other help or ideas would be appreciated, thanks!