TPhpErrorException

Description

[Notice] Trying to get property of non-object (@line 23 in file /var/www/www.zasp.pl/htdocs/protected/Pages/Frontend/Pages.php).

Source File

/var/www/www.zasp.pl/htdocs/protected/Pages/Frontend/Pages.php (23)

0012:             throw new THttpException(404,'/',$id);
0013:         }
0014:         if(strlen($this->Site->Description) < 2 && count($this->Site->Photos) == 0)
0015:             $this->PageDescitpion->Visible = false;
0016:         
0017: 
0018:         $m = $this->getRequest ()->itemAt ( "id" );
0019:             
0020:         if ($m != null) {
0021:             do {
0022:                 $b = PagesRecord::finder ()->find ( 'ID = ?', $m );
0023: $m = $b->PageID;
0024: $this->activeBreadcrumbs[$b->ID] = $b->Name; 0025: } while ( $m != null ); 0026: } 0027: ksort($this->activeBreadcrumbs); 0028: 0029: 0030: $this->populateData (); 0031: 0032: $this->Gallery->DataSource = FilesRecord::finder ()->findAll ( 'PagesID = ? ORDER BY Position ', $id ); 0033: $this->Gallery->dataBind (); 0034: } 0035: protected function getData($offset, $limit) {

Stack Trace

#0 /var/www/www.zasp.pl/htdocs/protected/Pages/Frontend/Pages.php(23): PradoBase::phpErrorHandler(8, 'Trying to get p...', '/var/www/www.za...', 23, Array)
#1 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TControl.php(1293): Pages->onLoad(NULL)
#2 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(220): TControl->loadRecursive()
#3 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(201): TPage->processNormalRequest(Object(THtmlWriter))
#4 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(522): TPage->run(Object(THtmlWriter))
#5 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(468): TPageService->runPage(Object(Pages), Array)
#6 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(1219): TPageService->run()
#7 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(408): TApplication->runService()
#8 /var/www/www.zasp.pl/htdocs/index.php(15): TApplication->run()
#9 {main}
2019-11-16 22:15 Apache PRADO/3.2.4