we are suddenly seeing an empty template issue in our logs. And I am finding it difficult to debug which module/function is causing this.
Question: with what debug statement could I capture the culprit?
LOG
ERR (3): Warning: include(): Filename cannot be empty in /app/code/core/Mage/Core/Block/Template.php on line 241
ERR (3): Warning: include(): Filename cannot be empty in /app/code/core/Mage/Core/Block/Template.php on line 241
ERR (3): Warning: include(): Failed opening '' for inclusion (include_path='/lib/minify:/app/code/local:/app/code/community:/app/code/core:/lib:.') in /app/code/core/Mage/Core/Block/Template.php on line 241
and the code in template.php
try { $includeFilePath = realpath($this->_viewDir . DS . $fileName); if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) { include $includeFilePath; } else { Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true); } } catch (Exception $e) { ob_get_clean(); throw $e; }
help appreciated ;P