0

After upgrading Magento from 2.3.1 to 2.3.3, while running di:compile, it throws following error.

Extra parameters passed to parent construct: $messageFactory, $emailMessageInterfaceFactory, $mimeMessageInterfaceFactory, $mimePartInterfaceFactory, $addressConverter. 
File: /vendor/magento/module-newsletter/Model/Queue/TransportBuilder.php
Total Errors Count: 1
4
  • 1
    are you extending/instantiating module-newsletter/Model/Queue/TransportBuilder?
    – Radu
    Commented Jan 28, 2020 at 15:55
  • also, running a magento se:up before magento se:di:co may help as it is doing a bit of clean-up.
    – Radu
    Commented Jan 28, 2020 at 15:56
  • Thanks @Radu : Tried , no improvement.
    – Chandru
    Commented Jan 30, 2020 at 10:31
  • Can you please the complete error there is a chance that some custom module is extending class TransportBuilder? Commented Feb 7, 2020 at 5:42

1 Answer 1

0

I was having the same problem while upgrading from 2.2.7 to 2.3.4. I removed all the given extra parameters from the parent::__construct function from the file, and it compiled successfully. Not sure if this was the correct way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.