error when try compile

Hello guys! When I try to run setup:di:compile I can see this following error

www@svc-1ta7ollgxcwouhzb:~/public_html$ php -d display_errors=on bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------]  11% < 1 sec 95.0 MiB
Fatal error: Uncaught Error: Class 'Controller' not found in /srv/public_html/app/code/Ubertheme/Ubdatamigration/fixtures/lib/protected/controllers/BaseController.php:3
Stack trace:
#0 /srv/public_html/app/code/Ubertheme/Ubdatamigration/fixtures/lib/protected/controllers/Step6Controller.php(3): include_once()
#1 /srv/public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(136): require_once('/srv/public_htm...')
#2 /srv/public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Step6Controller', '/srv/public_htm...')
#3 /srv/public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator))
#4 /srv/public_html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('/srv/public_htm...')
#5 /srv/public_html/setup/src/Mage in /srv/public_html/app/code/Ubertheme/Ubdatamigration/fixtures/lib/protected/controllers/BaseController.php on line 

Run this command rm -rf app/code/Ubertheme/Ubdatamigration/lib would help me?

17 answers

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

Hi there,

Compilation was started.

Run this command rm -rf app/code/Ubertheme/Ubdatamigration/lib would help me?

Yes, to solve that issue you simply run the following command in your M2 root folder via SSH terminal:

rm -rf app/code/Ubertheme/Ubdatamigration/fixtures/lib

Regards,
Mall.
 
 
 

#1
Profile photo of igorpfc 120.00 $tone July 28, 2022
Public

Hey friend! That works! thanks! but now when I go to Data migration admin I see this error:

Look at this print: https://prnt.sc/Cq2-NzFXaSuj
and this: https://prnt.sc/kVmK1zPra4iH
It’s important to note that I changed the store to the production server to get the latest information from the Magento 1 store and permanently left the Magento 2 store in production. Could it be something in the database permission?

#2
Profile photo of Mall Staff 184060.00 $tone July 29, 2022
Public

Hi there,

Look at this print: https://prnt.sc/Cq2-NzFXaSuj
and this: https://prnt.sc/kVmK1zPra4iH

That is strange, do you see the database configuration of our module at the following path?

pub/ub-tool/protected/config/db.php

If yes, please re-check the permission in that file and other files located at the path: pub/ub-tool/ .

In case you still need further assistance from us after that, please consider providing me with information about your M2 instance:
+ Admin credentials and URL to the backend
+ SSH credentials and let me know the path to the M2 folder
I will help to check further then.
 

Regards,
Mall.
 

#3
Profile photo of Mall Staff 184060.00 $tone August 11, 2022
Public

Hi there,

I now see error 404 when I enter datamigration see the print https://prnt.sc/ABEwaOBqiX4A

FYI, I’ve created an admin user named ub in your M2 instance.
I checked in your instance and saw the not found issue you mentioned: http://prntscr.com/lQXf2NT7nwtK
That is because your sever is Nginx however you are missing the necessary extra configuration for Nginx. You can find the configuration guide of our module in the file readme.html (included in your downloaded package).

Regards,
Mall.

#7
Profile photo of Mall Staff 184060.00 $tone August 12, 2022
Public

Hi there,

Could you check this print https://prnt.sc/o3FYNrNrsLtw it’s de reply from hosting provider. You can check if everything is fine now please?

It’s still not working. When you click our module in the menu in the backend, it loads the URL below and it still returns the not found message:
https://1ta7ollgxcwouhzb.mojostratus.io/ub-tool/index.php/base/start?token=88592d926197daad66f98bcedd047345

Please contact your system admin to get more help on the extra configuration in Nginx as indicated in the guide of our migration tool (readme.html included in your downloaded package)
 

Regards,
Mall.

#9
Profile photo of Mall Staff 184060.00 $tone September 6, 2022
Public

Hi there,

php -f bin/ubdatamigration run --step=6 --mode=update
it processes for a while but doesn’t bring up the new records. Look at this print: https://prnt.sc/tTi53v2KAWBX
And I have more than 93 records.
What do you recommend?

Please note that you must reindex the data after the delta migration finish in order to see the newly migrated customers in the customer’s grid view in the M2 backend.
 

Regards,
Mall.
 

#11
Profile photo of Mall Staff 184060.00 $tone September 7, 2022
Public

Hi there,

I just did this, but the record still doesn’t appear.
Have some way I force it? 

I checked in your instance and saw that you have not reindexed the data successfully yet: http://prntscr.com/6gPKpdsDA286
Please try to reindex the data again by running the following CLI commands:

php -f bin/magento indexer:reset
php -dmemory_limit=-1 -f bin/magento indexer:reindex

Once done, you can check for the issue again and tell me how it goes.
 

Regards,
Mall.
 

#13
Profile photo of igorpfc 120.00 $tone September 8, 2022
Public

Hey Mall! You are the best! works! Now when I run:

php -d memory_limit=512M bin/ubdatamigration run --step=7 --mode=update
after some while I can see this error:
 
Message: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field ‘moip_interest_amount’ doesn’t have a default value. The SQL statement executed was: INSERT INTO `quote` (`store_id`, `is_active`, `is_virtual`, `is_multi_shipping`, `items_count`, `items_qty`, `orig_order_id`, `store_to_base_rate`, `store_to_quote_rate`, `grand_total`, `base_grand_total`, `customer_group_id`, `customer_note_notify`, `customer_is_guest`, `trigger_recollect`, `is_persistent`, `openpix_discount`, `base_openpix_discount`, `created_at`, `updated_at`, `base_currency_code`, `store_currency_code`, `quote_currency_code`, `customer_id`, `customer_tax_class_id`, `customer_email`, `customer_firstname`, `customer_lastname`, `applied_rule_ids`, `reserved_order_id`, `global_currency_code`, `base_to_global_rate`, `base_to_quote_rate`, `customer_taxvat`, `subtotal`, `base_subtotal`, `subtotal_with_discount`, `base_subtotal_with_discount`, `is_changed`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, :yp9, :yp10, :yp11, :yp12, :yp13, :yp14, :yp15, :yp16, :yp17, :yp18, :yp19, :yp20, :yp21, :yp22, :yp23, :yp24, :yp25, :yp26, :yp27, :yp28, :yp29, :yp30, :yp31, :yp32, :yp33, :yp34, :yp35, :yp36, :yp37, :yp38)
and the task stop! How can I solve this?

#14
Profile photo of Mall Staff 184060.00 $tone September 9, 2022
Public

Hi there,

Message: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1364 Field ‘moip_interest_amount’ doesn’t have a default value. The SQL statement executed was: INSERT INTO `quote`

The issue you mentioned was related to a custom field named ‘moip_interest_amount’ in the ‘quote’ table in your M2 database, it’s missing a default value.
To solve the issue, you must set a default value for that custom field. Once done, you can continue with data migration in step #7 by running the CLI command:

php -f bin/ubdatamigration run --step=7

Regards,
Mall.

#15
Profile photo of igorpfc 120.00 $tone September 9, 2022
Public

[Processing][delta] Step #7 migration completed with 15 record(s) in the ‘sales_order_status’ table.
…………………………………………………………………………………………………………………………………………………………………………………………………………………………………..PHP Error[8]: Trying to get property ‘attributes’ of non-object
in file /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 1740
#0 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/base/CApplication.php(832): CErrorHandler->handle()
#1 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(1740): CConsoleApplication->handleError()
#2 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(1631): Step7Controller->_migrateSalesQuote()
#3 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(310): Step7Controller->_migrateSalesOrders()
#4 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/commands/RunCommand.php(80): Step7Controller->actionRun()
#5 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/commands/RunCommand.php(36): RunCommand->_migrateData()
#6 unknown(0): RunCommand->actionIndex()
#7 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/console/CConsoleCommand.php(178): ReflectionMethod->invokeArgs()
#8 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/console/CConsoleCommandRunner.php(71): RunCommand->run()
#9 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#10 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/base/CApplication.php(185): CConsoleApplication->processRequest()
#11 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/yii-1.1.25/yiic.php(33): CConsoleApplication->run()
#12 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#13 /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/bin/ubdatamigration(4): require_once()

Now appears this error

#16
Profile photo of Mall Staff 184060.00 $tone September 12, 2022
Public

Hi there,

Error[8]: Trying to get property ‘attributes’ of non-object
in file /mnt/BLOCKSTORAGE/home/596413.cloudwaysapps.com/jsrrrkmtfz/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 1740

To solve the issue you mentioned, you can try following these steps:
1. Run the CLI command:

php -f bin/ubdatamigration clean --step=7

2. Once done, continue with delta migration in step #7:

php -f bin/ubdatamigration run --step=7

 
NOTE: It appears that your UB Data Migration Pro license has expired some time ago already. We highly recommend that you renew your license in case you wish to keep access to the download & our technical support service.
As a returning member you can apply this special coupon code to receive a 20% discount for license renewal: PR020
 

Regards,
Mall.

#17

Please login or Register to Submit Answer

Written By

Comments