Di:compile error when update to Magento 2.3.5

Created by Jane D, Modified on Mon, 25 May 2020 at 04:49 PM by Jane D

QUESTION:

Hi, we've been using your great extension version 1.0.3 for a while and have just updated to 2.3.5.

When running setup di:compile the following error is shown: 

Errors during compilation:
Bss\ProductsWidgetSlider\Block\GetData
Incompatible argument type: Required type:

\Magento\Catalog\Api\CategoryRepositoryInterface.
Actual type: array; File:
htdocs/app/code/Bss/ProductsWidgetSlider/Block/GetData.php

How to fix it? Thanks.


ANSWER: 

The error you encountered due to the module error which is not compatible with M2.3.5.


To solve the error, please download the attached file below and overwrite the current file on your site. 


The files changed as below:


app/code/Bss/ProductsWidgetSlider/Block/GetData.php




app/code/Bss/ProductsWidgetSlider/Block/Product/BestSeller.php




app/code/Bss/ProductsWidgetSlider/Block/Product/MostView.php 




app/code/Bss/ProductsWidgetSlider/Block/Product/OnSale.php



If there is anything else we might help you, please do not hesitate via https://bsscommerce.com/contact

We'd be happy to support.

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
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article