TConfigurationException

Description

TCaptcha requires PHP GD2 extension with TrueType font support.

Source File

/home/technos/public_html/framework/Web/UI/WebControls/TCaptcha.php (367)

0356:         $this->clearViewState('TestNumber',0);
0357:     }
0358: 
0359:     /**
0360:      * Configures the image URL that shows the token.
0361:      * @param mixed event parameter
0362:      */
0363:     public function onPreRender($param)
0364:     {
0365:         parent::onPreRender($param);
0366:         if(!self::checkRequirements())
0367: throw new TConfigurationException('captcha_imagettftext_required');
0368: if(!$this->getViewState('TokenGenerated',0)) 0369: { 0370: $manager=$this->getApplication()->getAssetManager(); 0371: $manager->publishFilePath($this->getFontFile()); 0372: $url=$manager->publishFilePath($this->getCaptchaScriptFile()); 0373: $url.='?options='.urlencode($this->getTokenImageOptions()); 0374: $this->setImageUrl($url); 0375: 0376: $this->setViewState('TokenGenerated',time()); 0377: } 0378: } 0379:

Stack Trace

#0 /home/technos/public_html/framework/Web/UI/TControl.php(1322): TCaptcha->onPreRender(NULL)
#1 /home/technos/public_html/framework/Web/UI/TControl.php(1328): TControl->preRenderRecursive()
#2 /home/technos/public_html/framework/Web/UI/TControl.php(1328): TControl->preRenderRecursive()
#3 /home/technos/public_html/framework/Web/UI/TControl.php(1328): TControl->preRenderRecursive()
#4 /home/technos/public_html/framework/Web/UI/TControl.php(1328): TControl->preRenderRecursive()
#5 /home/technos/public_html/framework/Web/UI/TControl.php(1328): TControl->preRenderRecursive()
#6 /home/technos/public_html/framework/Web/UI/TPage.php(227): TControl->preRenderRecursive()
#7 /home/technos/public_html/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#8 /home/technos/public_html/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#9 /home/technos/public_html/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(Home), Array)
#10 /home/technos/public_html/framework/TApplication.php(1189): TPageService->run()
#11 /home/technos/public_html/framework/TApplication.php(406): TApplication->runService()
#12 /home/technos/public_html/index.php(29): TApplication->run()
#13 {main}
2019-08-21 16:48 Apache PRADO/3.2.0