Fatal error: Call to a member function getDocumentInfo() on a non-object in /home/www/work/zamb/application/modules/zamb/controllers/DocumentController.php on line 176

shutdownhandler (Error)(1): Call to a member function getDocumentInfo() on a non-object

in /home/www/work/zamb/application/modules/zamb/controllers/DocumentController.php at line 176
00171:              }
00172:  
00173:              $replycount $this->provideComments();
00174:  
00175:              if(! $this->document->getPageInfo($page) instanceof PageInfo){
00176:                  throw new Exception("Document #{$document->getDocumentInfo()->getId()} has no page #{$page}");
00177:              }
00178:  
00179:              $this->view->document $this->document;
00180:              $this->view->headMeta()->setName('description',$this->document->getPageInfo($page)->getMetaDescription());