TInvalidDataTypeException

Description

TRepeater.DataSource is not valid.

Source File

/var/www/framework/Web/UI/WebControls/TDataBoundControl.php (492)

0481:             return $list;
0482:         }
0483:         else if(is_array($value))
0484:             return new TMap($value);
0485:         else if($value instanceof TDbDataReader) {
0486:             // read array from TDbDataReader since it's forward-only stream and can only be traversed once
0487:             return $value->readAll();
0488:         }
0489:         else if(($value instanceof Traversable) || $value===null)
0490:             return $value;
0491:         else
0492: throw new TInvalidDataTypeException('databoundcontrol_datasource_invalid',get_class($this));
0493: } 0494: 0495: public function getDataMember() 0496: { 0497: return $this->getViewState('DataMember',''); 0498: } 0499: 0500: public function setDataMember($value) 0501: { 0502: $this->setViewState('DataMember',$value,''); 0503: } 0504:

Stack Trace

#0 /var/www/framework/Web/UI/WebControls/TDataBoundControl.php(78): TDataBoundControl->validateDataSource(false)
#1 /var/www/framework/TComponent.php(135): TDataBoundControl->setDataSource(false)
#2 /var/www/protected/Pages/Films/Item.php(102): TComponent->__set('DataSource', false)
#3 /var/www/protected/Pages/Films/Item.php(20): Item->setData()
#4 /var/www/framework/Web/UI/TControl.php(1270): Item->onInit(NULL)
#5 /var/www/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#6 /var/www/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#7 /var/www/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#8 /var/www/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#9 /var/www/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#10 /var/www/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Item), Array)
#11 /var/www/framework/TApplication.php(1095): TPageService->run()
#12 /var/www/framework/TApplication.php(382): TApplication->runService()
#13 /var/www/index.php(239): TApplication->run()
#14 {main}
2017-11-19 16:29 Apache/2.2.16 PRADO/3.1.7