TConfigurationException

Description

TCaptcha requires PHP GD2 extension with TrueType font support.

Source File

/var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/WebControls/TCaptcha.php (363)


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

Stack Trace


#0 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1313): TCaptcha->onPreRender(NULL)
#1 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#2 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#3 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#4 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#5 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#6 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#7 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#8 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TControl.php(1319): TControl->preRenderRecursive()
#9 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TPage.php(220): TControl->preRenderRecursive()
#10 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#11 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#12 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/Web/Services/TPageService.php(444): TPageService->runPage(Object(AjoutDemande), Array)
#13 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/TApplication.php(1095): TPageService->run()
#14 /var/www/html/paraph_integ/atexo.demande/protected/library/prado/TApplication.php(382): TApplication->runService()
#15 /var/www/html/paraph_integ/atexo.demande/protected/library/Atexo/Controller/Prado.php(33): TApplication->run()
#16 /var/www/html/paraph_integ/atexo.demande/protected/library/Atexo/Controller/Front.php(104): Atexo_Controller_Prado::run()
#17 /var/www/html/paraph_integ/atexo.demande/index.php(24): Atexo_Controller_Front::run()
#18 {main}

2026-03-08 05:09 Apache/2.4.66 (Debian) PRADO/3.1.10