Prado\Exceptions\TInvalidOperationException

Description

Component 'Prado\Web\UI\WebControls\TRepeaterItem' is evaluating an invalid expression '$this->Page->makeToken($this->DataItem['Nome'])' : Component property 'Prado\Web\UI\WebControls\TRepeaterItem.DataItem' is not defined..

Source File

${PradoFramework}/TComponent.php (1290)

1279:      *
1280:      * @param string $expression PHP expression
1281:      * @throws TInvalidOperationException if the expression is invalid
1282:      * @return mixed the expression result
1283:      */
1284:     public function evaluateExpression($expression)
1285:     {
1286:         $expression = $this->dyEvaluateExpressionFilter($expression);
1287:         try {
1288:             return eval("return $expression;");
1289:         } catch (\Exception $e) {
1290: throw new TInvalidOperationException('component_expression_invalid', get_class($this), $expression, $e->getMessage());
1291: } 1292: } 1293: 1294: /** 1295: * Evaluates a list of PHP statements. 1296: * 1297: * Behaviors may implement the function: 1298: * <code> 1299: * public function dyEvaluateStatementsFilter($statements, $chain) { 1300: * return $chain->dyEvaluateStatementsFilter(str_replace('foo', 'bar', $statements)); //example 1301: * } 1302: * </code>

Stack Trace

#0 ${PradoFramework}/Web/UI/TCompositeLiteral.php(81): Prado\TComponent->evaluateExpression()
#1 ${PradoFramework}/Web/UI/TControl.php(1409): Prado\Web\UI\TCompositeLiteral->evaluateDynamicContent()
#2 ${PradoFramework}/Web/UI/TControl.php(1407): Prado\Web\UI\TControl->preRenderRecursive()
#3 ${PradoFramework}/Web/UI/TControl.php(1407): Prado\Web\UI\TControl->preRenderRecursive()
#4 ${PradoFramework}/Web/UI/TControl.php(1407): Prado\Web\UI\TControl->preRenderRecursive()
#5 ${PradoFramework}/Web/UI/TControl.php(1407): Prado\Web\UI\TControl->preRenderRecursive()
#6 ${PradoFramework}/Web/UI/TControl.php(1407): Prado\Web\UI\TControl->preRenderRecursive()
#7 ${PradoFramework}/Web/UI/TPage.php(246): Prado\Web\UI\TControl->preRenderRecursive()
#8 ${PradoFramework}/Web/UI/TPage.php(221): Prado\Web\UI\TPage->processNormalRequest()
#9 ${PradoFramework}/Web/Services/TPageService.php(547): Prado\Web\UI\TPage->run()
#10 ${PradoFramework}/Web/Services/TPageService.php(465): Prado\Web\Services\TPageService->runPage()
#11 ${PradoFramework}/TApplication.php(1245): Prado\Web\Services\TPageService->run()
#12 ${PradoFramework}/TApplication.php(386): Prado\TApplication->runService()
#13 ${DocumentRoot}/index.php(25): Prado\TApplication->run()
#14 {main}
2022-08-09 04:16 Apache/2.4.54 (Debian) PRADO/4.2.1