error when try compile

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

[email protected]:~/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?

9 answers

Profile photo of Mall Staff 180840.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 60.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 180840.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 180840.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 180840.00 $tone 7 days ago
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

Please login or Register to Submit Answer

Written By

Comments