1

We are trying to upgrade a Magento 2.2.2 site to Magento 2.3.2, when executing php bin/magento setup:di:compile we get the error...

Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 72.5 MiBPHP Fatal error:
Declaration of Bss\MultiStoreViewPricing\Model\Quote\Item\Collection::_assignProducts() must be compatible with Magento\Quote\Model\ResourceModel\Quote\Item\Collection::_assignProducts(): Magento\Quote\Model\ResourceModel\Quote\Item\Collection in /var/www/html/app/code/Bss/MultiStoreViewPricing/Model/Quote/Item/Collection.php on line 124

image

12
  • Welcome, the issue is the extension your using is only compatible with magento 2.1 you need to upgrade it to the 2.2 version before running setup upgrade Sep 10, 2019 at 11:34
  • i upgrade from 2.2.2 to 2.3.2 Sep 10, 2019 at 11:38
  • You may need to upgrade the module still as there are a number of new changes when it comes to custom modules which are not met in the 2.2 version you have installed. had similar issue with another extension yesterday Sep 10, 2019 at 11:39
  • i run this command bin/magento setup:upgrade before this stept up upgrade the module Sep 10, 2019 at 11:41
  • disable the BSS module and the setup will allow you to compelte the upgrade then you need to upgrade the BSS module before you can reactivate it Sep 10, 2019 at 11:50

1 Answer 1

0

Like what I have explained in your previous question, you have 2 options to fix the error:

  1. upgrade your Multiple Store View Pricing module, or
  2. edit the method declaration from Bss\MultiStoreViewPricing\Model\Quote\Item\Collection::_assignProducts() to Bss\MultiStoreViewPricing\Model\Quote\Item\Collection::_assignProducts(): parent
2

Your Answer

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

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