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

Created by Rosa Truong, Modified on Fri, 31 Jan 2020 at 11:40 AM by Rosa Truong

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.



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