I am using Magento and just applied this patch. There where two errors

patching file app/code/core/Mage/Core/Model/Email/Template/Filter.php
Hunk #1 FAILED at 166.
Hunk #2 succeeded at 177 (offset -10 lines).
1 out of 2 hunks FAILED -- saving rejects to file app/code/core/Mage/Core/Model/Email/Template/Filter.php.rej


can't find file to patch at input line 2293
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git app/code/core/Zend/Xml/Security.php app/code/core/Zend/Xml/Security.php
|index a3cdbc8..8b697b9 100644
|--- app/code/core/Zend/Xml/Security.php
|+++ app/code/core/Zend/Xml/Security.php
File to patch:
Skip this patch? [y]

The first one I can fix manually myself but the second is trying to access a file which doesn't even exist?

  • FYI: The patch should create this file, so it's weird that it complains that it cannot find it. Jan 25, 2016 at 7:13
  • Having same issue, any solution to this yet?
    – David
    Jan 25, 2016 at 9:33
  • @TejabhagavanKollepara this is an old question for a different patch, please look more carefully before close-voting Oct 14, 2016 at 9:00
  • The question is not a duplicate and the correct answer is not stated in the suggested duplicate Oct 16, 2016 at 0:38

1 Answer 1


You need to apply SUPEE-6788 first :)


Not the answer you're looking for? Browse other questions tagged or ask your own question.