Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
    
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? – Mikel Bitson Dec 29 '15 at 18:07
    
rwd and Magento 1.9.1.1 – user2774042 Dec 29 '15 at 22:26
up vote 1 down vote accepted

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

share|improve this answer
    
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? – user2774042 Jan 7 at 18:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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