4

Error message is in system.log file. Looked at lines 187 and 197 of app/code/core/Mage/Core/Model/Email/Template/Filter.php and can't figure out what could be wrong?

Error as displayed in system.log:

2015-12-29T17:11:22+00:00 ERR (3): Notice: Undefined variable: block in /home/public_html/SITE/app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 187

2015-12-29T17:11:22+00:00 ERR (3): Notice: Undefined variable: block in /home/public_html/SITE/app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 197

Filter.php file content at line 187 and 197:
Filter.php

2
  • Howdy! What theme are you using on your site? I found a discussion about this here: themeforest.net/item/ultimo-fluid-responsive-magento-theme/… It looks like they're discussing this problem because of a patch to 1.9.2.2, what version of Magento are you running now? Did you get there via a patch or a fresh install? Commented Dec 29, 2015 at 18:07
  • rwd and Magento 1.9.1.1 Commented Dec 29, 2015 at 22:26

1 Answer 1

3

One option probably is to init the block variable with "false" on line 167enter image description here

1
  • Thanks for your reply. Why is this error getting generated? Is this a common issue? I added $block = false; to Filter.php. No errors yet. What does $block = false;` do? Commented Jan 7, 2016 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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