Error 500

count(): Parameter must be an array or an object that implements Countable
Application Log
Timestamp Level Category Message
22:53:48.337667 error php
count(): Parameter must be an array or an object that implements Countable
(/home/maxfitent/public_html/themes/maxfitenterprises/views/layouts/_header.php:198)
Stack trace:
#0 /home/maxfitent/yii/web/CController.php(869):
ProductController->renderFile()
#1
/home/maxfitent/public_html/themes/maxfitenterprises/views/layouts/main.php(6):
ProductController->renderPartial()
#2 /home/maxfitent/yii/web/CBaseController.php(126): require()
#3 /home/maxfitent/yii/web/CBaseController.php(95):
ProductController->renderInternal()
#4 /home/maxfitent/yii/web/widgets/CContentDecorator.php(76):
ProductController->renderFile()
#5 /home/maxfitent/yii/web/widgets/CContentDecorator.php(54):
CContentDecorator->decorate()
#6 /home/maxfitent/yii/web/widgets/COutputProcessor.php(44):
CContentDecorator->processOutput()
#7 /home/maxfitent/yii/web/CBaseController.php(206):
CContentDecorator->run()
#8 /home/maxfitent/yii/web/CBaseController.php(300):
ProductController->endWidget()
#9
/home/maxfitent/public_html/themes/maxfitenterprises/views/layouts/column2left.php(6):
ProductController->endContent()
#10 /home/maxfitent/yii/web/CBaseController.php(126): require()
#11 /home/maxfitent/yii/web/CBaseController.php(95):
ProductController->renderInternal()
#12 /home/maxfitent/yii/web/CController.php(784):
ProductController->renderFile()
#13
/home/maxfitent/public_html/protected/controllers/ProductController.php(21):
ProductController->render()
#14 /home/maxfitent/yii/web/actions/CInlineAction.php(49):
ProductController->actionIndex()
#15 /home/maxfitent/yii/web/CController.php(308):
CInlineAction->runWithParams()
#16 /home/maxfitent/yii/web/CController.php(286):
ProductController->runAction()
#17 /home/maxfitent/yii/web/CController.php(265):
ProductController->runActionWithFilters()
#18 /home/maxfitent/yii/web/CWebApplication.php(282):
ProductController->run()
#19 /home/maxfitent/yii/web/CWebApplication.php(141):
CWebApplication->runController()
#20 /home/maxfitent/yii/base/CApplication.php(180):
CWebApplication->processRequest()
#21 /home/maxfitent/public_html/index.php(13): CWebApplication->run()
REQUEST_URI=/sports-wears/t-shirts/t-shirts-11.html