Prado\Exceptions\TInvalidOperationException

Description

Component property 'Accueil.headerSection' is not defined.

Source File

/home/pdcge/public_html/protected/Common/BasicPage.php (64)

0053:             }
0054:             if(($config = json_decode($pageRecord->page_configCust)) == null){
0055:                 if(($config = json_decode($pageRecord->page_config)) == null){
0056:                     $config = json_decode($pageRecord->page->page_config);
0057:                 }
0058:             }
0059:             
0060:             if($config){
0061:                 $tmp = new HeaderComponent();
0062:                 $tmp->setData($pageRecord);
0063:                 $tmp->config = $config->Header;
0064: $this->headerSection->controls[] = $tmp;
0065: 0066: if(isset($config->Main)){ 0067: foreach($config->Main->content as $content){ 0068: 0069: $objet = $content->Objet; 0070: $comp = new $objet(); 0071: $comp->setData($content); 0072: $comp->config = $content; 0073: if ($mainbefore) 0074: $this->mainSection->controls->insertAt(0,$comp); 0075: else 0076: $this->mainSection->controls->add($comp);

Stack Trace

#0 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(199): Prado\TComponent->__get('headerSection')
#1 /home/pdcge/public_html/protected/Common/BasicPage.php(64): Prado\Web\UI\TControl->__get('headerSection')
#2 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TControl.php(1318): BasicPage->onInit(NULL)
#3 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TCompositeControl.php(35): Prado\Web\UI\TControl->initRecursive(Object(Accueil))
#4 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TTemplateControl.php(244): Prado\Web\UI\TCompositeControl->initRecursive(NULL)
#5 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(220): Prado\Web\UI\TTemplateControl->initRecursive()
#6 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/UI/TPage.php(208): Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
#7 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(528): Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
#8 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage(Object(Accueil), Array)
#9 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(1190): Prado\Web\Services\TPageService->run()
#10 /home/pdcge/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(382): Prado\TApplication->runService()
#11 /home/pdcge/public_html/index.php(188): Prado\TApplication->run()
#12 {main}
2019-05-25 01:04 Apache PRADO/4.0.1