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 233

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 233
00228:              }
00229:  
00230:              $replycount $this->provideComments();
00231:  
00232:              if(! $this->document->getPageInfo($page) instanceof PageInfo){
00233:                  throw new Exception("Document #{$document->getDocumentInfo()->getId()} has no page #{$page}");
00234:              }
00235:  
00236:              $this->view->document $this->document;
00237:              $this->view->headMeta()->setName('description',$this->document->getPageInfo($page)->getMetaDescription());