TPhpErrorException

Description

[Notice] Trying to get property of non-object (@line 126 in file /home/datas/www/protected/common/app/Publicite.php).

Source File

/home/datas/www/protected/common/app/Publicite.php (126)

0115: 
0116:   public function getImgBandeauUrl() {
0117:     return '/i/p/b/'.$this->ar()->idx_annu_compte.'/'.$this->arAnnuaire()->url.'-'.strtotime($this->arAnnuaire()->dt_maj).'.png';
0118:   }
0119: 
0120:   public function getImgPreRollPath() {
0121:     $appdir = Prado::getApplication()->getBasePath();
0122:     return $appdir.'/../medias/img/p/p/'.$this->ar()->idx_annu_compte.'.png';
0123:   }
0124: 
0125:   public function getImgPreRollUrl() {
0126: return '/i/p/p/'.$this->ar()->idx_annu_compte.'/'.$this->arAnnuaire()->url.'-'.strtotime($this->arAnnuaire()->dt_maj).'.png';
0127: } 0128: 0129: public function genHtmlPageBandeau() { 0130: $html = ''; 0131: if($this->arAnnuaire() instanceof AnnuaireRecord) { 0132: if(Vars::R()->OptAdSense == true) { 0133: $html = '<div class="pubB">'; 0134: $html.=Vars::R()->HTMLAdSensePub2; 0135: $html.='</div>'; 0136: }else { 0137: $target = ''; 0138: # on donne le code HTML

Stack Trace

#0 /home/datas/www/protected/common/app/Publicite.php(126): PradoBase::phpErrorHandler(8, 'Trying to get p...', '/home/datas/www...', 126, Array)
#1 /home/datas/www/protected/common/app/Reportage.php(64): Publicite->getImgPreRollUrl()
#2 /home/datas/www/protected/pages/public/reportages/PgReportage.php(87): Reportage->genHtmlPageVideo(Object(Publicite))
#3 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(4210): PgReportage->onLoad(NULL)
#4 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(6223): TControl->loadRecursive()
#5 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(6215): TPage->processNormalRequest(Object(THtmlWriter))
#6 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(8340): TPage->run(Object(THtmlWriter))
#7 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(8306): TPageService->runPage(Object(PgReportage), Array)
#8 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(9297): TPageService->run()
#9 /home/datas/www/extentions_php/prado/3.1.10/framework/pradolite.php(8899): TApplication->runService()
#10 /home/datas/www/index.php(6): TApplication->run()
#11 {main}
2014-08-20 16:35 Apache/2.2.22 (Ubuntu) PRADO/3.1.10