Magento2 2.3.1 compile error

Upgraded to 2.3.1 today and I’m experiencing the following error during compiling. 
php -dmemory_limit=4g bin/magento setup:di:compile
[27-Mar-2019 20:31:49 UTC] PHP Fatal error: Declaration of Ubertheme\Ubdatamigration\Model\Indexer\Product\Category\Action\Full\Interceptor::execute(): Ubertheme\Ubdatamigration\Model\Indexer\Product\Category\Action\Full must be compatible with Magento\Catalog\Model\Indexer\Category\Product\Action\Full::execute(): Magento\Catalog\Model\Indexer\Category\Product\Action\Full in /magento/generated/code/Ubertheme/Ubdatamigration/Model/Indexer/Product/Category/Action/Full/Interceptor.php on line 7

7 answers

Profile photo of ubdev Staff 97650.00 $tone March 28, 2019
Public

Hi there, 
Our team is still working on the compatibility update for Magento 2.3.1. So please give us a bit more time to get this release ready. 
We will keep you informed once our migration tool for Magento 2.3.1 is in place. 
Regards,
Ubertheme team

#1
Profile photo of ubdev Staff 97650.00 $tone March 28, 2019
Public

Hi there, 
We’ve just released a new Pro version 3.1.9 for Magento 2.1.3, the latest package is available for download in your profile now. 
Regards,
Ubertheme team

#2
Profile photo of wadeopgh 110.00 $tone April 2, 2019
Public

I updated and restarted on a fresh DB, when I tried to compile it threw the same error. 
 
[02-Apr-2019 15:38:15 UTC] PHP Fatal error:  Declaration of Ubertheme\Ubdatamigration\Model\Indexer\Product\Category\Action\Full\Interceptor::execute(): Ubertheme\Ubdatamigration\Model\Indexer\Product\Category\Action\Full must be compatible with Magento\Catalog\Model\Indexer\Category\Product\Action\Full::execute(): Magento\Catalog\Model\Indexer\Category\Product\Action\Full in /magento/generated/code/Ubertheme/Ubdatamigration/Model/Indexer/Product/Category/Action/Full/Interceptor.php on line 7

#3
Profile photo of Mall Staff 184060.00 $tone April 3, 2019
Public

Hi there,

I updated and restarted on a fresh DB, when I tried to compile it threw the same error. 

Please let me know the version of PHP in your instance now. 

Also, to solve the compile issue, you can run the following command in your terminal:

rm -f app/code/Ubertheme/Ubdatamigration/etc/di.xml
rm -f app/code/Ubertheme/Ubdatamigration/Model/Indexer/Product/Category/Action/Full.php

Once done, clean M2 cache and re-run the Magento’s compile command.
 
Regards,
Mall.

#4
Profile photo of ladbroke 150.00 $tone April 20, 2019
Public

I’m having the same issue with this too.  I have the latest version of the extension with Magento 2.3.1.  I have followed the steps above, but still see the error when I compile, it never gets past ‘Interceptors Generation 4/7’

#5
Profile photo of Mall Staff 184060.00 $tone April 22, 2019
Public

Hi Ladbroke and Karoon,

If you already applied all steps as per my reply #3 and the issue still persisted, that was strange.
 
Please submit a new ticket and provide me the following site info: 

  • URL and Admin credentials of your M2 instance
  • SSH credentials of your M2 instance
  • Let me know the path to your M2 folder

I will help to check further and get back to you then. 
 
PS. Please make sure each of you will submit a separate ticket, and mark the ticket private. Then it’s safe to share your site info, only you and our technical team can access. 
Regards,
Mall.
 
 

#7

Please login or Register to Submit Answer

Written By

Comments