Prado Portal Community
September 07, 2010, 10:21:45 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Pradoportal v1.2.0 has been released!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: In register new user the image for security code not show  (Read 1584 times)
daab
Jr. Member
**

Karma: +0/-0
Posts: 53


View Profile Email
« on: March 19, 2007, 11:50:18 »

Hi Steen,

In register new user the image for security code not show:


phpInfo output:

gd
GD Support    enabled
GD Version    2.0 or higher
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.2.1
T1Lib Support    enabled
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled

Best
daab
Logged
rabol
Administrator
Jr. Member
*****

Karma: +0/-0
Posts: 67


View Profile Email
« Reply #1 on: March 22, 2007, 18:35:40 »

Hi

I have seen this one before...

Make sure that you have something like this:
<service id="captcha" class="Application.Common.TCaptchaService" Width="170" Height="30" Length="5" FontFile="/protected/Common/font/monofont.ttf" />

in your application.xml ( and make sure that the font file exists)
Logged
daab
Jr. Member
**

Karma: +0/-0
Posts: 53


View Profile Email
« Reply #2 on: March 23, 2007, 02:58:31 »

Hi

I already reviewed and is exactly equal the content in application.xml and the file FontFile="/protected/Common/font/monofont.ttf" exist with yours rights corrects.

thanks

daab
Logged
daab
Jr. Member
**

Karma: +0/-0
Posts: 53


View Profile Email
« Reply #3 on: March 28, 2007, 00:24:32 »

Hi Steen

In konqueror browser i found these error to make click on the place where must to appear the  captcha image. This font file is found in /Common/font/monofont.ttf

[Warning] imagettfbbox() [<a href='function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font (@line 74 in file /home/administrador/public_html/portal/protected/Common/TCaptchaImageComponent.php).

Stack Trace
#0 [internal function]: PradoBase::phpErrorHandler(2, 'imagettfbbox() ...', '/home/administr...', 74, Array)
#1 /home/administrador/public_html/portal/protected/Common/TCaptchaImageComponent.php(74): imagettfbbox(22.5, 0, '/var/www//prote...', '95ghf')
#2 /home/administrador/public_html/portal/protected/Common/TCaptchaService.php(74): TCaptchaImageComponent->generateCaptchaImage(170, 30, 5)
#3 /home/administrador/public_html/prado/framework/TApplication.php(998): TCaptchaService->run()
#4 /home/administrador/public_html/prado/framework/TApplication.php(350): TApplication->runService()
#5 /home/administrador/public_html/portal/index.php(53): TApplication->run()
#6 {main}

best
daab
Logged
rabol
Administrator
Jr. Member
*****

Karma: +0/-0
Posts: 67


View Profile Email
« Reply #4 on: March 28, 2007, 11:28:51 »

Are you sure that your web server/user have read access to the folder where the font is ?
Logged
daab
Jr. Member
**

Karma: +0/-0
Posts: 53


View Profile Email
« Reply #5 on: March 28, 2007, 22:02:29 »

Hi Steen.

the problem is solved when replacing:
//$this->_FontFile = $_SERVER['DOCUMENT_ROOT'] . TPropertyValue::ensureString($value);

in TCaptchaImageComponent in function setFontFile at line 93.

with:
$this->_FontFile = $this->Application->PortalBasePath . TPropertyValue::ensureString($value);

in linux $_SERVER['DOCUMENT_ROOT'] not return the right path of monofont.ttf

I hope that in version 1.0.3 the problem is solved for the users of linux.

Best
daab
Logged
marvz2010
Newbie
*

Karma: +0/-0
Posts: 4


View Profile Email
« Reply #6 on: February 17, 2010, 15:50:22 »

When i register I have problem with the image too. They seems unreadable its hard to identify them
Logged

mylacebags
Hero Member
*****

Karma: +0/-0
Posts: 818


View Profile Email
« Reply #7 on: August 12, 2010, 09:01:58 »

 Maurice Lacroix replica[/b]  is one of the giant  replica Rolex Datejust II watches[/b] makers of the world and all the productions of  Longines replica watches[/b] are remarkable for its excellent precision, great craftsmanship, and accuracy of outputs.  Christian Dior replica watches[/b] are in hot craze for the fashion conscious youngsters;  Louis Vuitton replica[/b] are really good looking  Longines watches with standard output and excellent durability in comparison to initial investment against its purchase.
A few best selling  replica Croum  are narrated here.
 Rolex Submariner replica  looks sturdy. The  Ferrari watches case is available with solid stainless steel, and sparkling steel-made bezel. Keeping the symmetry with its metallic look, the face dial color of this  Omega replica  is silver with stick hour markings and steel made hands.the  Longines replica watches  comes with Italian leather made strap and fold-over-clasp. This  Rolex replica is water resistant not water proof therefore not recommended for water sports.
 Piaget watches series has a number of best selling  Bell & Ross watches  models. One of these models are made with white dial and white bezel with leather strap and the  replica Jaquet droz  runs on best quality Japanese automatic movement; its face glass is made of mineral crystal scratch proof glass and the  Breitling watches  comes with genuine leather made strap and solid 316 steel made  Rolex Air King watches  case which stands for its excellent durability.
 U-boat replica runs on Japanese automatic movement and come with same specification with 45mm case diameter, 316-stainless steel  Rolex GMT watches case, and with the best quality leather strap and deployment buckle.
 replica Rolex watches  of automatic series and with black dial looks absolutely stunning with contract colored white bezel and runs on Japanese automatic movement, hi-class leather strap and deployment buckle, stainless steel made solid  replica Oris case and smooth sweeping second’s hands. This good looking  Rado replica watches is adequately water resistant.(  replica IWC ; Rolex watches  )




Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!