Forums / All Other Contributions/Addons / Captcha using TTF & GD

Captcha using TTF & GD

Views: 147,342

Results 541 to 560 of 593
25 Jun 2010, 9:48 AM
#541
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Captcha using TTF & GD

jolion:

Hi,

:frusty: I hope that someone can give me a helping hand. I have installed the captcha and as far as I've checked it works fine except for the contact us page. When a costumer has forgotten to fill in a field or make a mistake in i.e. the captcha code the page load again with the error messages. But the inquiry field returns emty so the user must type again his message.

I search on the internet for sites with contact page using the captcha and test to see what happen but my problem didn't show there.

I use the original files and have no modifications made to it.

Hope there is somebody out there who can give me a solution.

Thank you in advance!

take a look at this bug report ..

http://www.zen-cart.com/forum/showthread.php?t=155522

2 Aug 2010, 12:32 AM
#542
cowgirlmodel avatar

cowgirlmodel

New Zenner

Join Date:
Apr 2009
Posts:
56
Plugin Contributions:
0

Re: Captcha using TTF & GD

Would be great if you came out w/ an updated version of this mod - love it. However, I've been told it's too outdated to be compatible w/ php 5.3.

5 Aug 2010, 6:45 PM
#543
tamya avatar

tamya

Zen Follower

Join Date:
Feb 2007
Posts:
336
Plugin Contributions:
0

Re: Captcha using TTF & GD

Just finished reading the 55 pages, tried every suggested solution without any lock.

The only thing i did not try is the "checking for spaces" using the script from Andrew, i can find it, anyone know where i can get it?

10 Aug 2010, 3:33 PM
#544
fe1lho avatar

fe1lho

New Zenner

Join Date:
Apr 2010
Posts:
74
Plugin Contributions:
0

Re: Captcha using TTF & GD

I'm trying to install this module, BUT I've got an error on the SQL update, telling me that there are :

8 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

Into the Admin part, I only see the new CAPTCHA but noting inside.
I'm using a version 1.3.8a

Is there something to checks before ?
Thanks for your help

16 Aug 2010, 3:58 PM
#545
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

1, Fe1ho,

Did you install the captcha_img.php, captcha_debug.php, and captcha_test.php files in the root directory? The instructions leave out that step. You can run the captcha_test.php by typing that filename into your browser's address.

  1. On another note, I have installed this module into 2 stores, one being a 1.3.9e store, and it works fine so far on my test server in 1.3.9e where I am running PHP.5.2.9-2.

  2. And yet another note: I have installed Captcha on 2 sites using the Zencart_Zen template, and each time I have had to correct inc.udes/languages/zencart_zen/english.php, at lines 282-283 in my installation, so that where it says ' = Required Information' it says '* = Required Information' and below that, where it says 'star.gif' I have replaced star.gif with '*'.

Before doing the corrections above, my pages just said = Required Information; and my "Contact Us" page said "star.gif" in the 3 places where there should have been an asterisk *.

I am puzzled that I see no mention of this problem in the thread when searching on "star.gif" or "=Required information."

I am also puzzled that I do not see that english.php file in the module itself, so I cannot go in and fix the module for future uploads.

Does anyone know whether this is a problem with my particular template (Zencart_Zen) or some other factor? Since it was easily solved, this is just an esoteric question at this point.

Thanks for any responses.

Notageek

20 Sep 2010, 12:03 AM
#546
timali avatar

timali

New Zenner

Join Date:
Sep 2010
Posts:
2
Plugin Contributions:
0

Re: Captcha using TTF & GD

I have installed this Captcha module and having frustrations.

Installed all files as needed and all pages that the captcha was supposed to show on are now blank. When I go to the admin and turn captcha off for a certain page my page comes back.

The only think I can figure may be wrong is I do not understand the instructions:

  1. EDIT:
    Use applied files as a sample. All changes of a code are made in brackets
    // BOF CAPTCHA
    ... code ...
    // EOF CAPTCHA

I saved the files to their directories, what do I need to edit? I am fairly new but have installed templates in the past with little problems. I know I installed all the files, what am I missing?:(

Here is example of contact page not working:
http://pet-rabbit-toys.com/store/index.php?main_page=contact_us

Only good thing is at least the spammers can't get to those pages either!!!! :clap:

23 Sep 2010, 1:52 PM
#547
mikehr avatar

mikehr

New Zenner

Join Date:
Aug 2009
Posts:
13
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi all, can anybody help me how to solve the IE8 secutiry message when the page wiht captcha is loaded? But MOD is working very well. Thank you.. I mean IE8 message at the top that page is not secure etc....

24 Oct 2010, 8:19 PM
#548
dallasdobbs avatar

dallasdobbs

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: Captcha using TTF & GD

I am testing the ttf_gd CAPTCHA for use on my new store. I am having an issue with the size of the font used for the image creation.
It doesn't respond to changes made in the admin control.
I've run through the thread but I found this mentioned, but no solution.
It doesn't seem to be template dependent.

I'm running v1.3.9e, Linux 2.6.18-194.17.1.el5xen, 5.3.2 (Zend: 2.3.0) , MySQL 5.0.91, GD is bundled (2.0.34 compatible)

I noticed in the debug,
'FreeType Support' => false,
'T1Lib Support' => false,
Could it be either of these? Are they dependencies?

24 Oct 2010, 8:51 PM
#549
dallasdobbs avatar

dallasdobbs

New Zenner

Join Date:
Apr 2007
Posts:
9
Plugin Contributions:
0

Re: Captcha using TTF & GD

dallasdobbs:

I am testing the ttf_gd CAPTCHA for use on my new store. I am having an issue with the size of the font used for the image creation.
It doesn't respond to changes made in the admin control.
I've run through the thread but I found this mentioned, but no solution.
It doesn't seem to be template dependent.

I'm running v1.3.9e, Linux 2.6.18-194.17.1.el5xen, 5.3.2 (Zend: 2.3.0) , MySQL 5.0.91, GD is bundled (2.0.34 compatible)

I noticed in the debug,
'FreeType Support' => false,
'T1Lib Support' => false,
Could it be either of these? Are they dependencies?

Update, I recompllied adding FreeType to my PHP build :clap:and it is now working! Yes they are dependencies.

19 Nov 2010, 6:07 PM
#550
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

Note on Post 545, there was a missing parameter in my zencart_zen template, just a matter of typing in * before = Required.

19 Nov 2010, 10:34 PM
#551
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

Still trying to sort out my issue of the following code appearing at the top of the header at www.gokaraokemachine.com:

/* Begin Simple Google Analytics / / End Simple Google Analytics */

I am starting to wonder if this is really correct HTML code? Are there not supposed to be double slashes for comments such as these? Is this a new type of HTML or a PHP convention? Asking these questions here gives me a direction to research next.

I simply copied the code into my html_header.php before the </head>. One thing I tried was a line of space before and after the inserted code. Of course, my site went blank.

Another potential avenue might be some sort of connection to the new axynchronous tracking type that this code is supposed to enable. Maybe there is some setting I need to make to cause this unwanted verbiage/code to disappear from my home page header. I need to go to the Google Analytics site and try to set this up more effectively.

I will post if I make any discoveries in these avenues of research.

19 Nov 2010, 11:37 PM
#552
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

Sorry-I tried to delete the above post which was posted in the wrong thread. I guess it did not save the deletion. That issue is posted in the Simple Google Analytics thread. Hopefully this can be deleted from this thread.

20 Nov 2010, 12:11 AM
#553
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

I upgraded from 1.3.9g to 1.3.9h, and my test site works as expected.

However, my real site now is blank for all the secure pages.

I tried to work with my ISP to get the shared SSL set up correctly. Now I do see the secure site in the address.

But now, instead of the "This web page is not available" message I had formerly, I now see the following on otherwise blank pages for login, contact us, and checkout pages:

CAPTCHA Error: GD-Library does not support JPG. The CAPTCHA cannot be used!

My ISP does have GD enabled for JPEG and everything else, so this message is nonsensical. The GD settings are:

gd
GD Support enabled
GD Version 2.0
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.42
WBMP Support enabled

CAPTCHA is working well on my test wamp server and also on my online test site at https://www.gokaraokemachine.com/wampcopytest.

I re-uploaded CAPTCHA with TIFF and GD version 2-9, ran https://www.gokaraokemachine.com/captcha_test.php and captcha_debug.php, but no change and no information was obtained.

I re-uploaded the files from version 1.3.9h. I think this does not affect any admin files, since admin is working properly after taking off the SSL which I hope to reinstall once the blank screen problem in the store is solved (Is that an erroneous assumption that admin files are not involved?), but I re-uploaded everything anyway, several times.

I went through all modules and find no conflicts with the 1.3.9h except that I did not have the skill to edit the zencart_zen file that was affected; so I tried that file as well as the unchanged 1.3.9h and ruled out any conflict there. Everything always works on my test servers.

I really do not know what else to try here. The error message is wrong because GD is installed with JpEG support. Maybe after days of trying to resurrect my cart, it's time to re-install. Any suggestions will be tried by me, unless I reinstall first.

20 Nov 2010, 4:37 AM
#554
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

Re: Captcha using TTF & GD

Someday, somewhere, someone is going to benefit from my ignorance and lack of method.

After much study and repeated uploading of files, I read there was a SQL patch in the module.

I had taken the approach that it worked before so surely it was installed and there was just an incomplete FTP upload somewhere.

The SQL patch completely turned on all of the insecure pages of my site. So that, in combination with getting my SSL in sync with my configure.php files, brings me back to an operational site after the upgrade from 1.3.9g to 1.3.9h, I believe.

Apparently a message that GD and JPEG are not available may indicate that a SQL installation on the particular website database is needed.

How obvious is that for a remedy?

2 Jan 2011, 1:57 AM
#555
honeypot avatar

honeypot

New Zenner

Join Date:
Jan 2007
Posts:
55
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi, Just a quick question if anyone can help. I have installed this captcha without any issues. However, does anyone know if you can do a jscript form check for the captcha if someone does not enter it correctly or does not enter at all when they create account? Would like to wish everyone a happy new year aswell.

2 Jan 2011, 2:06 AM
#556
honeypot avatar

honeypot

New Zenner

Join Date:
Jan 2007
Posts:
55
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi, Also is there any way to have a captcha for the report cheaper price add on. I tried to DIY it and I can get the captcha image on the report cheaper price page but you can leave it blank and still submit the form so it is not able to check correctly.

10 Jan 2011, 12:10 AM
#557
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Captcha using TTF & GD

anyone have a fix for validation errors due to the code &rand=

enid=30681cbdc1ad03737a2602f686fb150b&rand=0.411519001294443511" alt="Enable t…
  1. general entity "rand" not defined and no default entity
  2. reference to entity "rand" for which no system identifier could be generated
  3. reference to entity "rand" for which no system identifier could be generated

thanks

5 Sep 2011, 8:21 AM
#558
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Captcha using TTF & GD

Thanks for the great mod!

The only question I have is it supposed to erase all of the information entered on the Create Account page if an incorrect CAPTCHA is entered? There has only been one other post about this issue so I'm thinking that it's something that I've altered.

And if it is supposed to erase all of the entered information, is there a fix to make it not do so? (I figured out how to keep all of the entered fields on contact us thanks to another post - the fix just won't work on Create Account.)

Thanks in advance.

22 Sep 2011, 4:27 PM
#559
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Captcha using TTF & GD

kamelion0927:

Thanks for the great mod!

The only question I have is it supposed to erase all of the information entered on the Create Account page if an incorrect CAPTCHA is entered? There has only been one other post about this issue so I'm thinking that it's something that I've altered.

And if it is supposed to erase all of the entered information, is there a fix to make it not do so? (I figured out how to keep all of the entered fields on contact us thanks to another post - the fix just won't work on Create Account.)

Thanks in advance.

Where did you find the fix for keeping the entered fields on the contact us page? I have desperately been looking for this too.

7 Oct 2011, 12:22 AM
#560
kenton avatar

kenton

New Zenner

Join Date:
Sep 2011
Posts:
38
Plugin Contributions:
0

Re: Captcha using TTF & GD

Just installed on to V1.3.9h but can't get any letters in the box.

See: http://www.skysports.com.au/captcha_test.php

In the diagnostic, I get:
Warning: imagettftext() [function.imagettftext]: Could not read font in /includes/classes/captcha.php on line 249
(and line 251)

I tried installing an new TTF in the /fonts directory as well as disabling VERDANA.TTF that was put ther in the install.

The only other thing was that I did not edit any of the new files, only moved them from ./YOUR_TEMPLATE/ to my template. Was I supposed to?

Thanks
Kenton