TPhpErrorException

Description

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

Source File

/var/www/www.zasp.pl/htdocs/protected/Layout/BodyContent.php (24)

0013:         $this->keywords = '';
0014:         $this->description = '';
0015:         
0016:         
0017:         $baseMethod = new BaseFunction ();
0018:         $langID = $baseMethod->getShortLang ();
0019:         $this->LangCode = $baseMethod->getShortLang ();
0020:         
0021:         switch ($this->getPage ()->getPagePath ()) {
0022:             case 'Home' :
0023:                 $seo = PagesRecord::finder ()->findByID_AND_LangCode ( 1, $langID );
0024: $this->title = $seo->Name;
0025: $this->keywords = $seo->MetaKeywords; 0026: $this->description = $seo->MetaDescription; 0027: break; 0028: case 'Pages' : 0029: $seo = PagesRecord::finder ()->findByID_AND_LangCode ( $this->getRequest ()->itemAt ( "id" ),$langID 0030: ); 0031: $this->title = $seo->Name; 0032: $this->keywords = $seo->MetaKeywords; 0033: $this->description = $seo->MetaDescription; 0034: break; 0035: default : 0036: break;

Stack Trace

#0 /var/www/www.zasp.pl/htdocs/protected/Layout/BodyContent.php(24): PradoBase::phpErrorHandler(8, 'Trying to get p...', '/var/www/www.za...', 24, Array)
#1 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TControl.php(1293): BodyContent->onLoad(NULL)
#2 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TControl.php(1300): TControl->loadRecursive()
#3 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(220): TControl->loadRecursive()
#4 /var/www/www.zasp.pl/htdocs/framework/Web/UI/TPage.php(201): TPage->processNormalRequest(Object(THtmlWriter))
#5 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(522): TPage->run(Object(THtmlWriter))
#6 /var/www/www.zasp.pl/htdocs/framework/Web/Services/TPageService.php(468): TPageService->runPage(Object(Home), Array)
#7 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(1219): TPageService->run()
#8 /var/www/www.zasp.pl/htdocs/framework/TApplication.php(408): TApplication->runService()
#9 /var/www/www.zasp.pl/htdocs/index.php(15): TApplication->run()
#10 {main}
2016-12-04 04:51 Apache PRADO/3.2.4