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


  • 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 Commented Sep 10, 2019 at 11:34
  • i upgrade from 2.2.2 to 2.3.2 Commented 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 Commented Sep 10, 2019 at 11:39
  • i run this command bin/magento setup:upgrade before this stept up upgrade the module Commented 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 Commented Sep 10, 2019 at 11:50

1 Answer 1


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
  • Dear Rendy could you please review the code in this path:/var/www/html/app/code/Bss/MultiStoreViewPricing/Model/Quote/Item/Collection.php check attached i.ibb.co/bBSms3n/2019-09-10-141531.png Commented Sep 11, 2019 at 9:53
  • which line i edit it Commented Sep 11, 2019 at 9:55

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.