Fix the issue on Magento 2.1.x: Interface 'Magento\Framework\View\Element\Block\ArgumentInterface' not found

Created by Rosa Truong, Modified on Tue, 26 Nov, 2019 at 4:13 PM by Rosa Truong

Issue:


After the module version 1.1.3 installation on Magento 2.1.8, I get the following fatal error

Error:  Fatal error: Interface 'Magento\Framework\View\Element\Block\ArgumentInterface' not found in app/code/Bss/InfiniteScroll/Helper/Data.php on line 28


Solution: 


The root problem is the current version (1.1.3) is not compatible with Magento 2.1.x

The class Magento\Framework\View\Element\Block\ArgumentInterface in the updated extension's version does not support Magento 2.1.x

We have fixed this issue and edited these files: 

app/code/Bss/InfiniteScroll/Helper/Data.php

app/code/Bss/InfiniteScroll/Plugin/JsFooterPlugin.php

app/code/Bss/InfiniteScroll/view/frontend/layout/catalog_category_view.xml

app/code/Bss/InfiniteScroll/view/frontend/layout/catalogsearch_advanced_result.xml

app/code/Bss/InfiniteScroll/view/frontend/layout/catalogsearch_result_index.xml 

app/code/Bss/InfiniteScroll/view/frontend/templates/product/listing/renderer.phtml 


Please replace these files by a new one as attached to fix this issue.


For more information about our extension, please refer to Magento 2 Infinite Scroll page.

If you need any further assistance, please don't hesitate to contact us at sales@bsscommerce.com 

  

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