TInvalidOperationException

Description

Component 'ProductBox' is evaluating an invalid expression '$this->imgHandler->GetImageUrl('list',$this->img->picture->filename)' : [Warning] imagecolorallocate() expects parameter 1 to be resource, null given (@line 379 in file /usr/share/php/ST3/handler/ImageHandler.php)..

Source File

/usr/share/php/prado-3.1.10.r3017/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

Stack Trace

#0 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(2359): TComponent->evaluateExpression('$this->imgHandl...')
#1 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1321): TCompositeLiteral->evaluateDynamicContent()
#2 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#3 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#4 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#5 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#6 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#7 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#8 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#9 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TPage.php(220): TControl->preRenderRecursive()
#10 /usr/share/php/prado-3.1.10.r3017/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#11 /usr/share/php/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#12 /usr/share/php/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(ProductsByMarkPage), Array)
#13 /usr/share/php/prado-3.1.10.r3017/framework/TApplication.php(1095): TPageService->run()
#14 /usr/share/php/prado-3.1.10.r3017/framework/TApplication.php(382): TApplication->runService()
#15 /var/www/clients/client10/web20/web/index.php(22): TApplication->run()
#16 {main}
2018-11-16 01:04 Apache PRADO/3.1.10