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 184

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 184
00179:              }
00180:  
00181:              $replycount $this->provideComments();
00182:  
00183:              if(! $this->document->getPageInfo($page) instanceof PageInfo){
00184:                  throw new Exception("Document #{$document->getDocumentInfo()->getId()} has no page #{$page}");
00185:              }
00186:  
00187:              $this->view->document $this->document;
00188:              $this->view->headMeta()->setName('description',$this->document->getPageInfo($page)->getMetaDescription());