I'm using Magento Community Edition 1.7.0.2.
LightBox2 stopped working after clearing js/css cache via cache management.
I receive the following error:
PHP Fatal error: Call to a member function addItem() on a non-object in home/*******/public_html/app/code/community/IG/LightBox2/Block/Catalog/Product/View/Media/Gallery.php on line 163
The front-end now only shows WSOD / blank page.
I have tried:
Any suggestions on where else to go to debug this issue? Or should I just restore from backup?
First, I'd suggest reaching out to the people who developed you extension for support. The better Magento extension shops and indie developers are always the best people to help you with a problem.
As for your specific problem, the code your error message is complaining about is here
foreach ($this->_jsList as $js)
$this->getLayout()->getBlock('head')->addItem('skin_js', $js);
Which means the call to $this->getLayout()->getBlock('head')
is returning a non-object, mostly likely the boolean "false".
There's only three reasons I could think of for this happening.
You're using this on a page where Magento doesn't instantiate a "head" object
Some other customization you've made/module you've installed attempts to rewrite the page/html_head
block class, but does so incorrectly such that Magento can't instantiate a `page/html_head' block
Some other customization you've made/module you've installed removes the head block
Lacking access to anyone with basic Magento skills, I'd start diff-ing your system and/or theme files vs. a standard installation.