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

  • 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 – Dava Gordon Sep 10 '19 at 11:34
  • i upgrade from 2.2.2 to 2.3.2 – MuhammedOmar Sep 10 '19 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 – Dava Gordon Sep 10 '19 at 11:39
  • i run this command bin/magento setup:upgrade before this stept up upgrade the module – MuhammedOmar Sep 10 '19 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 – Dava Gordon Sep 10 '19 at 11:50
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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