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

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? Jan 7, 2016 at 18:35

Your Answer

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

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