TPhpErrorException

Description

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

Source File

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

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

Stack Trace

#0 /var/www/www.zasp.pl/htdocs/protected/Layout/BodyContent.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): 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-07-01 13:30 Apache PRADO/3.2.4