Error on delta migration step 5

Hello
I am running this command (php -f bin/ubdatamigration run --step=5 --mode=update) and get the following error after the script has been running for about an hour.
Please advice

PHP Error[2]: Creating default object from empty value
    in file /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/protected/controllers/Step5Controller.php at line 1427
#0 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/protected/controllers/Step5Controller.php(264): Step5Controller->_migrateCatalogProductBundleOptions()
#1 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/protected/commands/RunCommand.php(58): Step5Controller->actionRun()
#2 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/protected/commands/RunCommand.php(28): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/yii/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/yii/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/yii/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/yii/base/CApplication.php(184): CConsoleApplication->processRequest()
#8 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/yii/yiic.php(33): CConsoleApplication->run()
#9 /home/cloudpanel/htdocs/test.ovationmusic.com/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /home/cloudpanel/htdocs/test.ovationmusic.com/bin/ubdatamigration(4): require_once()

21 answers

Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,
Before run delta migration in the step #5 with mode=update, seem you have deleted some products after migrated by our tool in first time?
Regards,
Mall.

#1
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

Hi
Do you mean deleted products on the Magento 1 store? I am not sure. Perhaps a co worker did that.
What are our options?

#2
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,

Do you mean deleted products on the Magento 1 store? 

No, is it in Magento2 after migrated in first time?
Regards,
Mall.

#3
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

No, I am pretty sure nobody has deleted products in the Magento 2 installation after initial migration.
What can we do?
 

#4
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,
So, that issue is strange. I am sure you have do that. Let’s provide me the admin credentials, ssh credentials, web root folder path of Magento2 and phpMyadmin credentials of your databases (M1 vs M2 databases)
I will check further and specify you the product’s SKU which you have deleted after your initial migration.
Regards,
Mall.

#5
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,

_migrateCatalogProductBundleOptions

Seem you have delete some product bundle options after initial migration?
Regards,
Mall.

#6
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,
I have checked your instance and i see this: http://i.prntscr.com/ja0ImxuHSEqFmBIH1GAMrQ.png
Seem you have moved/cloned current Magento2 instance from other M2 instance?
Regards,
Mall.

#8
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

No, this instance was originally installed here.
We made a clean install of Magento 2 and the first thing we did was to install the Ubertool.
As you note, there is an issue with the tool on the backend. I guess this has to do with the file permissions in the file system. The permissions have changed since I installed it the first time. Command line works though. 

#9
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

If you look at some of my earlier questions you will see the exact same server information there. You logged in back then as well

#10
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,
Ok, so let’s re-enable write permission for the folder at pub/ub-tool/protected/runtime
Once done, we can continue with our tool in back-end of your site.
And tell me know how it goes. I will check further the first issue.
Regards,
Mall.

#11
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,

I am afraid I have not been able to do it.

Yes, i have just do that for you but now we have new issue: http://i.prntscr.com/VDpd_vH2SFSaxIX349t9rA.png
Seem you have change some server settings?
Regards,
Mall.

#13
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

I saw this too. I honestly have no clue what the problem is. I thought is was a problem with permissions.
I can ask my host manager. Do you have any more information I can give him?

#14
Profile photo of Mall Staff 184060.00 $tone July 27, 2017
Public

Hi there,

Do you have any more information I can give him?

No, i don’t know what did you do with your instance after initial migration with our tool. So, i can’t suggest anything now.
Regards
Mall.

#15
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

I have really not done anything. But we have constant problems with Magento changing permissions upon installation of different modules, so the host made an sh script that resets all permissions on the domain. At least Magento works then. But it might have created problems for Ubertool. Will ask them.

#16
Profile photo of Oystein Baadsvik 440.00 $tone July 27, 2017
Public

I get this error in the browser console.
Does that tell you something?
JQMIGRATE: Logging is active
start Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-migrate.js:21 JQMIGRATE: Logging is active
/pub/ub-tool/index.php/base/mailchimp/script/get Failed to load resource: the server responded with a status of 404 (Not Found)
/pub/static/version1501174135/frontend/Swissup/argento-mall/en_US/Magento_PageCache/js/page-cache.js:40 Uncaught TypeError: element.prop is not a function

#17
Profile photo of Mall Staff 184060.00 $tone July 28, 2017
Public

Hi there,

I get this error in the browser console….

That is not related to our migration tool. Seem it still related to folders/files/owner settings in your Magento2 instance.
Anyway, you could try re-deploy the static files of your Magento2 site.
And tell me know how it goes.
Regards,
Mall.

#18
Profile photo of Oystein Baadsvik 440.00 $tone July 28, 2017
Public

Hi
I have re-deplyed static several times, but is the backend access really necessary to solve tis issue?
I assume all logs are available from Command line as well?

#19
Profile photo of Mall Staff 184060.00 $tone July 28, 2017
Public

Hi there,
Here is root of the issue in the step#5 as you mentioned: http://i.prntscr.com/GvSIdtr6SdG4mc4p3OlwBw.png
By the our tool’s logging, Our tool helped to migrate a record in the table catalog_product_bundle_option (option_id = 197) but you have deleted that record in back-end of your site after initial migration.
I have solved that issue by this: http://i.prntscr.com/8kORxDJ2Rrmn33dc2pd7Ig.png
And you have at least there similar cases. I have solved all for you with the same process.
Now you can continue in the step #5: http://i.prntscr.com/-p8eUTqvSNKkce-OYE-y6A.png
Let’s have a look again.
Regards,
Mall.
 

#20

Please login or Register to Submit Answer

Written By

Comments