ESI processing not enabled

Fatal error: Call to a member function getId() on a non-object in /var/www/emedco/app/design/frontend/enterprise/emedco/template/catalog/legend/right.phtml on line 10