This article talks about the issue where a patch you just applied takes your site down. To resolve it, you can remove the patch.
Affected products and versions
- Magento Commerce, all supported versions
- Magento Commerce Cloud, all supported versions
Issue
After you apply a patch, your site goes down.
Cause
This issue might appear because of a version incompatibility between the patch you just applied to your website, your customizations, other patches you had applied in the past, or some other error.
Solution
Remove the patch. The method of patch removal is different for Magento Commerce Cloud than for Magento Commerce and Magento Open Source.
Magento Commerce, Magento Open Source, all 1.X versions
For Magento Commerce and Magento Open Source 1.X versions,
- Run the following SSH command:
sh SUPEE_patch --revert
Magento Commerce, Magento Open Source, all 2.X versions
For Magento Commerce and Magento Open Source 2.X versions,
- Run the following SSH command:
(If the above command does not work, try usingpatch -p1 -R <
%patch_name%
.composer.patch-p2
instead of-p1
) - For the changes to be reflected, refresh the cache in the Admin under System > Cache Management.
Magento Commerce Cloud, all versions
For Magento Commerce Cloud, all versions,
- Remove the
%patch_name%.composer.patch
file(s) from them2-hotfixes
directory. -
Commit and push your code changes:
git commit -m "Remove %patch_name%.composer.patch patch" && git push origin