There is an issue with the current patch (SUPEE-6788) for Magento 1.8.1.0.
When I try to apply the patch I get the error of:
patching file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
Hunk #1 FAILED at 131.
1 out of 1 hunk FAILED -- saving rejects to file app/code/core/Mage/Core/Controller/Varien/Router/Admin.php.rej
When I pulled down a clean version of 1.8.1.0 and did a diff
, there was no difference.
I then looked into the patch file and saw it was expecting another function below line 131.
I found that function is in later versions (1.9.2.0+).
I just added that function to the app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
file, and re-ran the patch and everything worked.
Is that an okay work-around? That function will never be called but I am not sure if this will cause issues later on (like future patches).
EDIT
According to my applied.patches.list file I applied the following patches: SUPEE-5344, SUPEE-1533, SUPEE-5994, SUPEE-6285, and SUPEE-6482
_validateControllerInstance($controllerInstance)