Our install will load product pages correctly on initial load, but will give a 500 error in-browser on reload. When this occurs, we see errors such as "Call to a member function getMetaTitle() on null". We have custom PHTML templates that use "$this->getProduct()" to load product data, and we're seeing that this function returns null when the page is reloaded. Would there be any changes we'd need, possibly to layout XML or $this variable declarations in the template, in order to get things loading correctly?
Is it possible for you to share the custom code?
The file path is:
The relevant portion of the code is:
* NOTICE OF LICENSE
* Product media data template
* @see Mage_Review_Block_Product_View_Media
$_helper = $this->helper('catalog/output');
$_product = $this->getProduct();
We see error messages showing $this->getProduct() returning as null after the first page load, which don't get resolved until the full page cache is refreshed.