Component 'Main' is evaluating an invalid expression '$this->Application->Modules['XStatistics']->collectData()' : [Warning] mysql_num_rows(): supplied argument is not a valid MySQL result resource (@line 55 in file /www/sites/nowagromada/medica/protected/modules/xstatistics/x-statistics.php)..
/www/sites/nowagromada/medica/framework/TComponent.php (402)
0391: */
0392: public function evaluateExpression($expression)
0393: {
0394: try
0395: {
0396: if(eval("\$result=$expression;")===false)
0397: throw new Exception('');
0398: return $result;
0399: }
0400: catch(Exception $e)
0401: {
0402: throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage());
0403: }
0404: }
0405:
0406: /**
0407: * Evaluates a list of PHP statements.
0408: * @param string PHP statements
0409: * @return string content echoed or printed by the PHP statements
0410: * @throws TInvalidOperationException if the statements are invalid
0411: */
0412: public function evaluateStatements($statements)
0413: {
0414: try
#0 /www/sites/nowagromada/medica/framework/Web/UI/TControl.php(2359): TComponent->evaluateExpression('$this->Applicat...')
#1 /www/sites/nowagromada/medica/framework/Web/UI/TControl.php(1321): TCompositeLiteral->evaluateDynamicContent()
#2 /www/sites/nowagromada/medica/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#3 /www/sites/nowagromada/medica/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#4 /www/sites/nowagromada/medica/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#5 /www/sites/nowagromada/medica/framework/Web/UI/TPage.php(215): TControl->preRenderRecursive()
#6 /www/sites/nowagromada/medica/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#7 /www/sites/nowagromada/medica/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#8 /www/sites/nowagromada/medica/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Article), Array)
#9 /www/sites/nowagromada/medica/framework/TApplication.php(1095): TPageService->run()
#10 /www/sites/nowagromada/medica/framework/TApplication.php(382): TApplication->runService()
#11 /www/sites/nowagromada/medica/index.php(21): TApplication->run()
#12 {main}