[help] captcha does not appear

Any hacks and modifications will be in here...

[help] captcha does not appear

Postby dimasimple » Mon Sep 26, 2011 9:24 am

at the register, CaptchaSecurityImages not Appear


and when I click mydomain.com/CaptchaSecurityImages.php. I get a warning
"Warning: imagettfbbox () [function.imagettfbbox]: Could not find / open font in / home/u838960994/public_html/CaptchaSecurityImages.php on line 60
Error in imagettfbbox function
"
dimasimple
Newbie Member
 
Posts: 1
Joined: Sat Sep 17, 2011 7:08 am

Re: [help] captcha does not appear

Postby SamEA » Thu Sep 29, 2011 1:12 am

Install all GDLibrary components and it should work fine. If you are on a shared or managed hosting package, ask your web hoster to enable/install those components for you.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [help] captcha does not appear

Postby scoffer » Sun Oct 02, 2011 12:58 am

There's a bug in the code.
open with your favorite text editor the file CaptchaSecurityImages.php
Go to line 28
change this:
var $font = 'monofont.ttf';
to this;
var $font = './monofont.ttf';

... so all you need to do, is to add "./" (without the quotas).

Cheers,
Sc
scoffer
Standard Member
 
Posts: 5
Joined: Sat Oct 01, 2011 4:02 pm

Re: [help] captcha does not appear

Postby ghost » Sun Oct 02, 2011 2:47 am

SamEA wrote:Install all GDLibrary components and it should work fine. If you are on a shared or managed hosting package, ask your web hoster to enable/install those components for you.


hey i got php5-gd installed and still not showing and when i go download file it dose this

Not Found

The requested URL /download2.php was not found on this server.

and i check my server in /var/www/download2.php is there

im so lost :?
ghost
Standard Member
 
Posts: 6
Joined: Sun Oct 02, 2011 1:19 am

Re: [help] captcha does not appear

Postby SamEA » Sun Oct 02, 2011 11:47 pm

scoffer wrote:There's a bug in the code.
open with your favorite text editor the file CaptchaSecurityImages.php
Go to line 28
change this:
var $font = 'monofont.ttf';
to this;
var $font = './monofont.ttf';

... so all you need to do, is to add "./" (without the quotas).

Cheers,
Sc


I never needed to do such a modification, what OS and CP are you using?
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [help] captcha does not appear

Postby SamEA » Sun Oct 02, 2011 11:49 pm

ghost wrote:
SamEA wrote:Install all GDLibrary components and it should work fine. If you are on a shared or managed hosting package, ask your web hoster to enable/install those components for you.


hey i got php5-gd installed and still not showing and when i go download file it dose this

Not Found

The requested URL /download2.php was not found on this server.

and i check my server in /var/www/download2.php is there

im so lost :?


Did you try scoffer's advise? If so and you still continue to have problems with the captcha, please contact your web hoster for more support. If all GDLibrary components are installed and is included in PHP's configuration, you should not encounter any problems.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [help] captcha does not appear

Postby ghost » Mon Oct 03, 2011 12:09 pm

cool thanks, it work editing that .php file,

but still got main problem why can't i download files. it says download2.php not found error 404 and the file is there.

I,m the owner of this server. i got no problem with access.
ghost
Standard Member
 
Posts: 6
Joined: Sun Oct 02, 2011 1:19 am

Re: [help] captcha does not appear

Postby scoffer » Mon Oct 03, 2011 7:54 pm

SamEA wrote:
scoffer wrote:There's a bug in the code.
open with your favorite text editor the file CaptchaSecurityImages.php


I never needed to do such a modification, what OS and CP are you using?


Pretty standard stuff. Debian 5, PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 and self hosted ISPCP.

ghost wrote:cool thanks, it work editing that .php file,

but still got main problem why can't i download files. it says download2.php not found error 404 and the file is there.

I,m the owner of this server. i got no problem with access.


Good you got that working. This is just a guess for the second one, but seriously must have messed up the directory structure or reading the error message wrong ...or I'm just getting dumber every day. Can't really figure out anything that could cause 404. Can you copy & paste me exact link it's trying to load and from what page you transfer to the errorpage?

-Sc
scoffer
Standard Member
 
Posts: 5
Joined: Sat Oct 01, 2011 4:02 pm

Re: [help] captcha does not appear

Postby ghost » Tue Oct 04, 2011 12:49 pm

I'm running Proxmox server with vm debian 6 running in it with LAMP installed, website location /VAR/WWW/(all in here)

and this is how i'm testing it.

-http://192.168.100.3/
-http://192.168.100.3/files.php
-http://192.168.100.3/download.php?file=505WC_youtube.com.rar (click on guest)
-http://192.168.100.3/download.php?file=505WC_youtube.com.rar (enter security code)
-http://localhost/download2.php?a=505WC_youtube.com.rar&b=c3c8ebd789b8915c121066e19f0c10ea (Not Found The requested URL /download2.php was not found on this server.)

let me know if u need no any thing else
-
ghost
Standard Member
 
Posts: 6
Joined: Sun Oct 02, 2011 1:19 am

Re: [help] captcha does not appear

Postby ghost » Wed Oct 05, 2011 2:28 pm

Oh yer i went and start fresh server and it has same issue with. download2.php not found
ghost
Standard Member
 
Posts: 6
Joined: Sun Oct 02, 2011 1:19 am

Next

Return to Hacks and Modifications

Who is online

Users browsing this forum: No registered users and 7 guests

cron