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

Captcha using TTF & GD

Views: 147,342

Results 61 to 80 of 593
23 Mar 2007, 7:20 PM
#61
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Captcha using TTF & GD

Woodymon:

v.3.5 works fine on php 4.4.4 shop. But PHP 5.1.6 shop did get any better. Oops! I meant v2.5.

23 Mar 2007, 11:35 PM
#62
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

Re: Captcha using TTF & GD

installed the mod, however there is no image showing
there is a "re-draw" button but no image:down:

24 Mar 2007, 4:03 AM
#63
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Captcha using TTF & GD

OK. Solved the "Cannot redeclare class..." problem. I had to delete some old files that had file names with *.php.bak.

Still having a display problem with Contact Us page...

24 Mar 2007, 4:51 AM
#64
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

KTNaturals:

Still having a display problem with Contact Us page...From the look of your source it appears you may have removed a chunk out of the \includes\templates\YOUR_TEMPLATE\templates\tpl_contact_us_default.php that comes with the mod. Try reuploading that file.

Woody

24 Mar 2007, 9:17 AM
#65
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Woody!
Enter direct address in your browser - http://<your_domain>/captcha_img.php.
What you see? And what you see in html source code?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Mar 2007, 12:57 PM
#66
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

v 2.5a 24.03.2007 16:00

  1. Add captcha_debug.php.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Mar 2007, 2:16 PM
#67
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

a_berezin:

Woody!
Enter direct address in your browser - http://<your_domain>/captcha_img.php.
What you see? And what you see in html source code?

Firefox says:

The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors.

24 Mar 2007, 2:42 PM
#68
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

I tried v.2.5a:

  1. Copied updated includes/classes/captcha.php
  2. Copied new captcha_debug.php
  3. Pointed browser to http://www.domain.com/shop/captcha_debug.php or to http://domain.com/shop/captcha_debug.php
  4. Firefox web browser displays empty page

If I view the empty browser page's "generated source" (with Firefox web developer) all I see is:

<html><head></head></html>

Woody

24 Mar 2007, 3:24 PM
#69
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

Here is what my host reported back regarding the inability to display the captcha image when running the script on the host with PHP5:

I have checked the php.ini of both servers, and while there are significant differences between php4 and php5, the same set of functions are restricted on either server. So the only significant difference between the two hosts is the version of php.
Then he suggested moving the shop back to a host running PHP4. That's not going to happen.

Any others out there running this captcha script (even the new 2.5a debug script) on PHP5? If so which versions?

Woody

24 Mar 2007, 4:04 PM
#70
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Woodymon:

Firefox says:

The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors.

a_berezin:

And what you see in html source code?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Mar 2007, 4:53 PM
#71
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

a_berezin:

And what you see in html source code? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

<html><body><img alt="The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors." src="http://www.domain.com/shop/captcha_img.php"></body></html>
24 Mar 2007, 5:11 PM
#72
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Sorry, Woody. I can't help you.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Mar 2007, 5:37 PM
#73
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

Anyone else have this mod working on PHP 5.x?

Anyone else having troubles running this mod on PHP 5.x?

Woody

24 Mar 2007, 5:44 PM
#74
alik avatar

alik

Zen Follower

Join Date:
Mar 2006
Posts:
126
Plugin Contributions:
0

Re: Captcha using TTF & GD

Alik:

installed the mod, however there is no image showing
there is a "re-draw" button but no image:down:

i think i found where the problem is:

SEO Urls are cusing the file to be renamed:
captcha_img**.php.html**?zenid=1e4a50...
it's adding the extra .html after the file ext. i'll try to find a way to remove it :lol:

25 Mar 2007, 3:25 AM
#75
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Captcha using TTF & GD

Woodymon:

From the look of your source it appears you may have removed a chunk out of the \includes\templates\YOUR_TEMPLATE\templates\tpl_contact_us_default.php that comes with the mod. Try reuploading that file.
Thanks, Woody. I looked and looked and looked, and I couldn't figure it out. So I just put the whole CAPTCHA thing in <fieldset>, and it was happy.

25 Mar 2007, 8:41 AM
#76
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Woody!
I add some debug settings to captcha_debug.php. Downlod and run it.
It's last chance.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Mar 2007, 8:20 PM
#77
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

a_berezin:

Woody!
I add some debug settings to captcha_debug.php. Downlod and run it.
It's last chance.

Andrew,

Thanks! Debug output displayed in browser! Will PM you output.

Woody

25 Mar 2007, 10:22 PM
#78
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

Andrew-

Sent you a PM containing the new debug output and a few notes.

And after sending the PM I removed Session Watcher v.1.01 mod. But captcha image still does not display.

If you find anything peculiar in the captcha debug report please let me know.

Thanks again for your assist in solving this puzzle.

Woody

26 Mar 2007, 8:03 AM
#79
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Woody!
I see your debug output. It's fine! :thumbsup: All works normal, image generated.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Mar 2007, 7:11 PM
#80
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

a_berezin:

Woody!
I see your debug output. It's fine! :thumbsup: All works normal, image generated.

The generated image does not display. That is the crux issue. Sorry if I haven't been very clear on that.

Possibly something in the header of the image or the image encoding, or issue with the method the server is delivering script output the client? Maybe http header issue?

Host just sent me a few notes on differences in the debug script output when run on the host with PHP4 vs PHP5. Not sure if the points are relevant or not. But I will gather those details and post shortly.

Woody