Fatal error: Uncaught Error: Call to a member function count() on null in /var/www/html/app/design/frontend/e-direct-v2/default/template/edirect/most_bought_products.phtml:3 Stack trace: #0 /var/www/html/app/code/core/Mage/Core/Block/Template.php(241): include() #1 /var/www/html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/e-dire...') #2 /var/www/html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #3 /var/www/html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml() #4 /var/www/html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(208): Mage_Core_Block_Abstract->toHtml() #5 /var/www/html/lib/Varien/Filter/Template.php(163): Mage_Core_Model_Email_Template_Filter->blockDirective(Array) #6 /var/www/html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(560): Varien_Filter_Template->filter('<div class="con...') #7 /var/www/html/app/code/core/Mage/Cms/Block/Page.php(123): Mage_Core_Model_Email in /var/www/html/app/design/frontend/e-direct-v2/default/template/edirect/most_bought_products.phtml on line 3