<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->toHtml(); ?>
This code suppose to output the recently viewed products on category page or product page (by inserting the code in .phtml files). and this has been always working for me on my Magento sites.
However I have experienced that for one site (Magento 184.108.40.206), this code isn't working at all. and for this site, the widget to show recently viewed product doesn't work either.
Any ideas what can cause the "recently viewed products" isn't working?