Fatal error: Uncaught Error: Call to a member function count() on array in /home/pharmaz9/public_html/app/design/frontend/pharma/default/template/catalog/product/view/media.phtml:38 Stack trace: #0 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Template.php(241): include() #1 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/pharma...') #2 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #3 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml() #4 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml() #5 /home/pharmaz9/public_html/app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('media', true) #6 /home/pharmaz9/public_html/app/design/frontend/pharma/default/template/catalog/product/view.phtml(63): Mage_Core_Block_Abstract->get in /home/pharmaz9/public_html/app/design/frontend/pharma/default/template/catalog/product/view/media.phtml on line 38