Installation issue on Magento 2.2.9 CE Fatal error: Interface 'Magento\Framework\Setup\Patch\DataPatchInterface' not found

Created by Support Agent, Modified on Mon, 13 Apr at 1:59 AM by Support Agent

Issue: 


When we installed the module v1.0.1 on Magento 2.2.9 CE, we got the issue:

Fatal error: Interface 'Magento\Framework\Setup\Patch\DataPatchInterface' not found in /app/code/Bss/RewardPoint/Setup/Patch/Data/AddProductAttribute.php on line 29


Solution: 


Our Magento 2 Reward Points only supports on Magento 2.3.x as the information from our product page

Hence, our module does not support Magento 2.2.x.

You could fix the Fatal issue yourself by following our guide below:


Step 1: Delete module's name in the table setup_module 

+ Delete via database admin

+ Or via SSH command and sql command: DELETE FROM setup_module WHERE setup_module.module = "Bss_RewardPoint"


- Step 2: 

+ Upload the attachment below file following path: app/code/Bss/RewardPoint/Setup/InstallData.php 

+ Delete this file following path: app/code/Bss/RewardPoint/Setup/Patch/Data/AddProductAttribute.php


- Step 3: 

Flush the cache + run upgrade and deploy command


Please check and follow our guide.


If you need further assistance, please don't hesitate to contact us.



Get to know about us!!


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


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


Discover our top tier plugins:


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