TPhpErrorException

Description

[Notice] Undefined variable: texteParent (@line 25 in file /var/www/vhosts/hydroreunion.re/httpdocs/protected/Layouts/Front/AccueilRubriqueTpl.php).

Source File

/var/www/vhosts/hydroreunion.re/httpdocs/protected/Layouts/Front/AccueilRubriqueTpl.php (25)

0014:         $moduleLang=Prado::getApplication()->getModule('lang');
0015:         $lang=$moduleLang->getLang();
0016: 
0017:         $rubrique=$elements["rubrique"];
0018:         $texteRub=$rubrique->getObjetTraduit();
0019: 
0020:         $this->Page->NavigatorTitle=$texteRub['titre'];
0021: 
0022:         if($rubrique->parentMenuHaut!=NULL)
0023:             $texteParent=$rubrique->parentMenuHaut->getObjetTraduit();
0024: 
0025: $this->titreParent->Text=$texteParent["titre"];
0026: $this->Page->PageSubTitle=$texteParent["titre"]; 0027: 0028: $this->titreRub->Text=$texteRub["titre"]; 0029: $this->sousMenu->Text=$elements["sousMenu"][$lang]; 0030: 0031: $texteAccueil=""; 0032: if($elements["accueil"]!=NULL){ 0033: if(isset($elements["accueil"][$lang]["titre"])){ 0034: $texteAccueil="<h2>".$elements["accueil"][$lang]["titre"]."</h2> 0035: <p>".nl2br($elements["accueil"][$lang]["texte"])."<br />"; 0036: if($elements["accueil"]["lien"]!="") 0037: $texteAccueil.="<a class=\"btn btn-primary btn-sm\" href=\"".$elements["accueil"]["lien"]."\">".$moduleLang->translate("more")."</a></p>";

Stack Trace

#0 /var/www/vhosts/hydroreunion.re/httpdocs/protected/Layouts/Front/AccueilRubriqueTpl.php(25): PradoBase::phpErrorHandler(8, 'Undefined varia...', '/var/www/vhosts...', 25, Array)
#1 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/UI/TControl.php(1286): AccueilRubriqueTpl->onLoad(NULL)
#2 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/UI/TControl.php(1293): TControl->loadRecursive()
#3 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/UI/TPage.php(215): TControl->loadRecursive()
#4 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#5 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#6 /var/www/vhosts/hydroreunion.re/httpdocs/prado/Web/Services/TPageService.php(444): TPageService->runPage(Object(Home), Array)
#7 /var/www/vhosts/hydroreunion.re/httpdocs/prado/TApplication.php(1095): TPageService->run()
#8 /var/www/vhosts/hydroreunion.re/httpdocs/prado/TApplication.php(382): TApplication->runService()
#9 /var/www/vhosts/hydroreunion.re/httpdocs/index.php(29): TApplication->run()
#10 {main}
2017-08-21 23:31 Apache PRADO/3.1.7