Dears, please help me to fix this problem. I have error code in system.log in /magento/var/log/ -folder. And I can't figure out which template is null. It seems that $fileName is null. Please help me s there any way to find link to empty file. Thanks in advance.

2016-10-18T09:42:56+00:00 ERR (3): Warning: include(): Failed opening '/var/www/html/magento/app/design/frontend/blacknwhite/default/template' for inclusion (include_path='/var/www/html/magento/app/code/local:/var/www/html/magento/app/code/community:/var/www/html/magento/app/code/core:/var/www/html/magento/lib:.:/usr/share/pear:/usr/share/php') in /var/www/html/magento/app/code/core/Mage/Core/Block/Template.php on line 242


Here're some observations that may help you track down the problem

  1. Magento's trying to include a template block with an empty string set as it's template. That's why you're seeing the warning. Look for any new (or old) setTemplate, or template="" in your code, or any place a template block is instantiated without setting a template
  2. Magento's trying to render the template system/cache/notifications.phtml — however, the fact its fallen back to the base design package to do this means Magento couldn't find this file in any adminhtml package/theme. This is a stock file that ships with the system, and may have been removed
  3. You say you're seeing it "everywhere", but the errors indicate it's an admin only problem. This might mean you're trying to run admin code from the front-end of vice versa (again, hard to remotely debug this sort of thing)

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