TPhpErrorException

Description

[Runtime Notice] Non-static method Block::OpenMainMenu() should not be called statically, assuming $this from incompatible context (@line 420 in file /home/cuinesib/public_html/cocina/protected/custom/cMaster.php).

Source File

/home/cuinesib/public_html/cocina/protected/custom/cMaster.php (420)

0409:     }
0410: 
0411:     public function RepeaterBlocksLeftDataBound($sender, $param)
0412:     {
0413:         $item = $param->Item;
0414:         if ($item->ItemType === 'Item' || $item->ItemType === 'AlternatingItem') {
0415:             if ($item->DataItem->tipo == 1) {
0416:                 $block = new $item->DataItem->bloque;
0417:                 $item->PlaceHolder1->Controls[] = $block;
0418:             }
0419:             if ($item->DataItem->tipo == 3 && $item->DataItem->principal == 1) {
0420: $item->ltOpenMainMenu->Text = Block::OpenMainMenu($item->DataItem->titulo);
0421: $item->lmenu->Text = $this->GetMenu($item->DataItem->id, $item->DataItem->principal); 0422: $item->ltCloseMainMenu->Text = Block::CloseMainMenu(); 0423: } else { 0424: $item->ltOpenMainMenu->Text = Block::OpenMenu($item->DataItem->titulo); 0425: $item->lmenu->Text = $this->GetMenu($item->DataItem->id, $item->DataItem->principal); 0426: $item->ltCloseMainMenu->Text = Block::CloseMenu(); 0427: } 0428: } 0429: } 0430: 0431: public function RepeaterBlocksCenterDataBound($sender, $param) 0432: {

Stack Trace

#0 /home/cuinesib/public_html/cocina/protected/custom/cMaster.php(420): PradoBase::phpErrorHandler(2048, 'Non-static meth...', '/home/cuinesib/...', 420, Array)
#1 /home/cuinesib/public_html/prado/framework/TComponent.php(374): cMaster->RepeaterBlocksLeftDataBound(Object(TRepeater), Object(TRepeaterItemEventParameter))
#2 /home/cuinesib/public_html/prado/framework/Web/UI/WebControls/TRepeater.php(740): TComponent->raiseEvent('OnItemDataBound', Object(TRepeater), Object(TRepeaterItemEventParameter))
#3 /home/cuinesib/public_html/prado/framework/Web/UI/WebControls/TRepeater.php(502): TRepeater->onItemDataBound(Object(TRepeaterItemEventParameter))
#4 /home/cuinesib/public_html/prado/framework/Web/UI/WebControls/TRepeater.php(681): TRepeater->createItemWithDataInternal(0, 'Item', Object(tbl_bloques))
#5 /home/cuinesib/public_html/prado/framework/Web/UI/WebControls/TDataBoundControl.php(354): TRepeater->performDataBinding(Object(TMap))
#6 /home/cuinesib/public_html/cocina/protected/custom/cMaster.php(157): TDataBoundControl->dataBind()
#7 /home/cuinesib/public_html/cocina/protected/custom/cMaster.php(102): cMaster->getBloquesLeft()
#8 /home/cuinesib/public_html/prado/framework/Web/UI/TControl.php(1270): cMaster->OnInit(NULL)
#9 /home/cuinesib/public_html/prado/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(listgaleria))
#10 /home/cuinesib/public_html/prado/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(listgaleria))
#11 /home/cuinesib/public_html/prado/framework/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(listgaleria))
#12 /home/cuinesib/public_html/prado/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#13 /home/cuinesib/public_html/prado/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#14 /home/cuinesib/public_html/prado/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#15 /home/cuinesib/public_html/prado/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#16 /home/cuinesib/public_html/prado/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#17 /home/cuinesib/public_html/prado/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(listgaleria), Array)
#18 /home/cuinesib/public_html/prado/framework/TApplication.php(1095): TPageService->run()
#19 /home/cuinesib/public_html/prado/framework/TApplication.php(382): TApplication->runService()
#20 /home/cuinesib/public_html/cocina/index.php(22): TApplication->run()
#21 {main}
2020-04-06 16:30 Apache PRADO/3.1.10