[v2.2.7] How to fix the incompatible issue with M2.3.5?

Created by Support Agent, Modified on Fri, 3 Apr at 5:45 AM by Support Agent

Issue:

 

When we are enabling the M2MultipleStoreViewPricing module version 2.2.7 on M2.3.5 CE and if anytime we run setup:di:compile, we are getting a warning.


Warning: Declaration of Bss\MultiStoreViewPricingCatalogRule\Model\Indexer\ReindexRuleProductPrice::execute($batchCount, ?Magento\Catalog\Model\P  


  roduct $product = NULL, $useAdditionalTable = false) should be compatible with Magento\CatalogRule\Model\Indexer\ReindexRuleProductPrice::execute  


  (int $batchCount, ?int $productId = NULL, bool $useAdditionalTable = false) in /home/leftword/migrate/LeftwordandTulika/vendor/bsscommerce/multi-  


  store-pricing-set/MultiStoreViewPricingCatalogRule/Model/Indexer/ReindexRuleProductPrice.php on line 203


Solution:


The issue is caused due to our module's bug when it calls the wrong arguments.

To solve this issue, we have edited this file MultiStoreViewPricingCatalogRule/Model/Indexer/ReindexRuleProductPrice.php

Please replace the change and then flush the cache on the site.


If you need any further assistance, please feel free to contact us.

We are more than happy to support you. As a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Explore our extensions: https://bsscommerce.com/magento-2-extensions.html 


For B2B businesses, our Magento B2B Extension by BSS Commerce is a flagship and widely adopted solution globally, offering advanced pricing, company account management, and streamlined workflows.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article