Prado\Exceptions\TPhpErrorException

Description

[Notice] Trying to get property 'pre_Titre' of non-object (@line 19 in file /home/rispo.org/public_html/protected/Pages/Frontend/PublicationDetail/PublicationDetail.php).

Source File

/home/rispo.org/public_html/protected/Pages/Frontend/PublicationDetail/PublicationDetail.php (19)

0008:     }
0009:     
0010: 
0011:     public function onLoad($param)
0012:     {
0013:         parent::onLoad($param);
0014: 
0015:         if($this->Request['id'] AND $this->Request['title']) 
0016:         {
0017:             $presseRecord = PresseRecord::finder()->findByPk($this->Request['id']);
0018: 
0019: if($this->Request['title'] == str_replace(' ', '_',StringTraitement::str_to_noaccent($presseRecord->pre_Titre)))
0020: { 0021: $this->image->setImageUrl($presseRecord->imageurlfirst('M')); 0022: setlocale(LC_TIME, "fr"); 0023: $zone = new DateTimeZone('Europe/Paris'); 0024: $date = new DateTime($presseRecord->pre_Date,$zone); 0025: $dateFormated = $date->format('d M Y'); 0026: 0027: $this->date->Controls[] = StringTraitement::str_month_fr($dateFormated); 0028: 0029: $this->titre->Controls[] = $presseRecord->pre_Titre; 0030: $this->article->Controls[] = $presseRecord->pre_Contenu; 0031: $this->auteur->Controls[] = $presseRecord->pre_Auteur;

Stack Trace

#0 /home/rispo.org/public_html/protected/Pages/Frontend/PublicationDetail/PublicationDetail.php(19): Prado\PradoBase::phpErrorHandler(8, 'Trying to get p...', '/home/rispo.org...', 19, Array)
#1 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1334): PublicationDetail->onLoad(NULL)
#2 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(228): Prado\Web\UI\TControl->loadRecursive()
#3 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(208): Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
#4 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(528): Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#5 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage(Object(PublicationDetail), Array)
#6 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(1190): Prado\Web\Services\TPageService->run()
#7 /home/rispo.org/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(382): Prado\TApplication->runService()
#8 /home/rispo.org/public_html/index.php(75): Prado\TApplication->run()
#9 {main}
2022-05-21 14:49 Apache PRADO/4.0.1