Hi Magento,
I have set up a Configurable Product with three children.
When I visit the product page I get the below error.
If I comment out the call to the invalid method (in media.phtml), I can view the page but the images for the child products do not show (because I have commented it out). Why is the method invalid, where is it being declared?
I read that Mage_Catalog_Block_Product_View_Media::isGalleryImageVisible is a method in 1.9.1 and later, which would explain the issue as I am using 1.9.0.1. If so, how do I get around this?
Thank you
Invalid method OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Media::isGalleryImageVisible(Array ( [0] => Varien_Object Object ( [_data:protected] => Array ( [value_id] => 57474 [file] => /p/i/pi21367_2_1.png [label] => PhotoCake Edible Cake Topper - Pumpkin Lanterns [position] => 1 [disabled] => 0 [label_default] => PhotoCake Edible Cake Topper - Pumpkin Lanterns [position_default] => 1 [disabled_default] => 0 [url] => https://www.design-a-cake.co.uk/media/catalog/product/p/i/pi21367_2_1.png [id] => 57474 [path] => /home/designac/public_html/media/catalog/product/p/i/pi21367_2_1.png ) [_hasDataChanges:protected] => [_origData:protected] => [_idFieldName:protected] => [_isDeleted:protected] => [_oldFieldsMap:protected] => Array ( ) [_syncFieldsMap:protected] => Array ( ) ) ) ) Trace: #0 /home/designac/public_html/app/design/frontend/rwd/default/template/catalog/product/view/media.phtml(48): Varien_Object->__call('isGalleryImageV...', Array) #1 /home/designac/public_html/app/design/frontend/rwd/default/template/catalog/product/view/media.phtml(48): OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Media->isGalleryImageVisible(Object(Varien_Object)) #2 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/designac/...') #3 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...') #4 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #5 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #6 /home/designac/public_html/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Block/Product/View/Type/Configurable.php(99): Mage_Core_Block_Abstract->toHtml() #7 /home/designac/public_html/app/design/frontend/rwd/default/template/catalog/product/view/type/options/configurable.phtml(31): OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Type_Configurable->getJsonConfig() #8 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/designac/...') #9 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...') #10 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #11 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #12 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml() #13 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(577): Mage_Core_Block_Abstract->_getChildHtml('options_configu...', true) #14 /home/designac/public_html/app/design/frontend/base/default/template/catalog/product/view/options/scpwrapper.phtml(2): Mage_Core_Block_Abstract->getChildHtml('', true, true) #15 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/designac/...') #16 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...') #17 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #18 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #19 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml() #20 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(577): Mage_Core_Block_Abstract->_getChildHtml('product.info.op...', true) #21 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(601): Mage_Core_Block_Abstract->getChildHtml('', true, true) #22 /home/designac/public_html/app/design/frontend/rwd/dac/template/catalog/product/view.phtml(126): Mage_Core_Block_Abstract->getChildChildHtml('container2', '', true, true) #23 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/designac/...') #24 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/da...') #25 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #26 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #27 /home/designac/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() #28 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml() #29 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml() #30 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true) #31 /home/designac/public_html/app/design/frontend/rwd/default/template/page/2columns-right.phtml(55): Mage_Core_Block_Abstract->getChildHtml('content') #32 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/designac/...') #33 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...') #34 /home/designac/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #35 /home/designac/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #36 /home/designac/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml() #37 /home/designac/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput() #38 /home/designac/public_html/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout() #39 /home/designac/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Php4u_BlastLuceneSearch_IndexController), 'no-route') #40 /home/designac/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Php4u_BlastLuceneSearch_IndexController), 'no-route') #41 /home/designac/public_html/app/code/community/Php4u/BlastLuceneSearch/controllers/IndexController.php(19) : eval()'d code(1) : eval()'d code(1) : eval()'d code(18): Mage_Cms_IndexController->noRouteAction(NULL) #42 /home/designac/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Php4u_BlastLuceneSearch_IndexController->noRouteAction() #43 /home/designac/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('noRoute') #44 /home/designac/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #45 /home/designac/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch() #46 /home/designac/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array) #47 /home/designac/public_html/index.php(106): Mage::run('', 'store') #48 {main}