This article talks about the issue where a patch you just applied takes your site down. To resolve it, you can remove the patch.
After you apply a patch, your site goes down.
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.
Remove the patch. The method of patch removal is different for Adobe Commerce on cloud infrastructure than for Adobe Commerce on-premises and Magento Open Source.
For Magento Open Source 1.X versions,
h SUPEE_patch --revert
For Adobe Commerce on-premises and Magento Open Source 2.x versions,
Run the following SSH command:
patch -p1 -R %patch_name%.composer.patch
(If the above command does not work, try using -p2
instead of -p1
)
For the changes to be reflected, refresh the cache in the Admin under System > Cache Management.
For Adobe Commerce on cloud infrastructure, all versions,
Remove the %patch_name%.composer.patch
file(s) from the m2-hotfixes
directory.
Commit and push your code changes:
git commit -m "Remove %patch_name%.composer.patch patch" && git push origin