v2.2.4: Fix the Reindexing Catalog Rule Product issue on M2.3.5 CE

Created by Rosa Truong, Modified on Wed, 20 May 2020 at 10:46 AM by Rosa Truong

Issue:


I have upgraded our Magento to the last version released M2.3.5 CE and use module's version 2.2.4, but the extension is not working. It throws this error in console when compiling code:


Warning: Declaration of Bss\MultiStoreViewPricingCatalogRule\Model\Indexer\RuleProductsSelectBuilder::build($websiteId, ?Magento\Catalog\Model\Product $product = NULL, $useAdditionalTable = false, $storeId = NULL) should be compatible with Magento\CatalogRule\Model\Indexer\RuleProductsSelectBuilder::build(int $websiteId, ?int $productId = NULL, bool $useAdditionalTable = false) in /data/web/magento2/app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/RuleProductsSelectBuilder.php on line 193 

 

Solution:


Regarding the issue you reported, we would like to update that our module is not compatible with Magento 2.3.5 currently.  

However, our dev has hot-fixed it and we would like to send you the fixed files.
To solve this error, please edit these two files below to fix the issue:

app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/ReindexRuleProductPrice.php (change type of param form function execute corresponding with core)
app/code/Bss/MultiStoreViewPricingCatalogRule/Model/Indexer/RuleProductsSelectBuilder.php (change type of param form function execute corresponding with core) 

Please check and replace the fixed files on your site.


If you have any issues, please feel free to contact us at sales@bsscommerce.com    

We are more than happy to support you.



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 atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article