Page 5 of 60 FirstFirst ... 345671555 ... LastLast
Results 41 to 50 of 593
  1. #41
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by babygekko View Post
    My feedback: maybe you can find better color for the fonts?
    You have enough of knowledge to self-make it. See
    Code:
    	var $backgroundColor = array(array(220, 220, 220), array(255, 255, 255));
    	var $linesColor = array(array(150, 150, 150), array(185, 185, 185));
    	var $textColor = array(array(30, 30, 30), array(199, 199, 199));

  2. #42
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Nevermind nevermind
    Last edited by Woodymon; 21 Mar 2007 at 10:18 PM.

  3. #43
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Yes! The changes above to /includes/classes/captcha.php
    solved my problem of the characters displaying.
    Looks good!
    So issues on PHP 4.44. shop are solved.

    But still no image displays on PHP 5.1.6 shop.

    My host says problems are with the script not their service (of course they would say that). If I can point them in the right direction they will help but I'm clueless.

    Woody
    Last edited by Woodymon; 21 Mar 2007 at 10:38 PM.

  4. #44
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    But still no image displays on PHP 5.1.6 shop.

    My host says problems are with the script not their service (of course they would say that). If I can point them in the right direction they will help but I'm clueless.
    I forgot to include error log entry:
    Code:
    File does not exist: /home/account/public_html/403.shtml
    client denied by server configuration: /home/account/public_html/shop/includes/templates/my_template/images/index.php
    Does this indicate a server security setting amiss or any other ideas?

    I asked host to look in their mod_security rules but that came back negative.

    Woody

  5. #45
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Anyone else have issues with this script on PHP 5.1x ??

    Just checking before I fire my web host

    Woody

  6. #46
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    I forgot to include error log entry:
    Code:
    File does not exist: /home/account/public_html/403.shtml
    client denied by server configuration: /home/account/public_html/shop/includes/templates/my_template/images/index.php
    Does this indicate a server security setting amiss or any other ideas?

    I asked host to look in their mod_security rules but that came back negative.
    Host says they observe no file index.php created
    in /home/account/public_html/shop/includes/templates/my_template/images/

    Is this index.php suppose to be created (and destroyed) on the fly each time the captcha image is generate?. Or is index.php only created in memory, not ever written to disk?

    My web host says that file needs loaded into the images directory, so that is my problem. But the mod does not come with index.php file.

    Is there an ez method availabe to adapt the mod to write the file to disk (as a png, gif or jpg) just to ensure the image is created.

    My host asked if there was a "debug" version of the script available.

    Woody

  7. #47
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    Host says they observe no file index.php created
    in /home/account/public_html/shop/includes/templates/my_template/images/

    Is this index.php suppose to be created (and destroyed) on the fly each time the captcha image is generate?. Or is index.php only created in memory, not ever written to disk?
    CAPTCHA don't create, use, need and etc index.php in any directory. And also CAPTCHA don't use/read/wrtite/touch any /images/ directory at all.
    Quote Originally Posted by Woodymon View Post
    Is there an ez method availabe to adapt the mod to write the file to disk (as a png, gif or jpg) just to ensure the image is created.
    It is possible, but I it shall not do it.

  8. #48
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    Yes! The changes above to /includes/classes/captcha.php
    solved my problem of the characters displaying.
    Looks good! So issues on PHP 4.44. shop are solved.
    I jumped to conclusions. After making the edits recommended the CAPTCHA module is working. But seven new errors showing up in error log each time.
    Code:
    error PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/account/public_html/shop/includes/classes/captcha.php:276) 
    in /home/account/public_html/shop/includes/classes/captcha.php on line 152
    in /home/account/public_html/shop/includes/classes/captcha.php on line 151
    in /home/account/public_html/shop/includes/classes/captcha.php on line 150
    in /home/account/public_html/shop/includes/classes/captcha.php on line 149
    in /home/account/public_html/shop/includes/classes/captcha.php on line 148
    in /home/account/public_html/shop/includes/classes/captcha.php on line 147
    in /home/account/public_html/shop/includes/classes/captcha.php on line 146
    The line numbers above refer to the following header code in function showCaptchaImg() within /includes/classes/captcha.php
    Code:
    		header('HTTP/1.0 200 OK');
    		header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    		header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
    		header('Cache-Control: no-store, no-cache, must-revalidate');
    		header('Pragma: no-cache');
    		header('Content-Type: image/' . $this->img_type);
    		header('Content-Length: ' . strlen($this->img));
    This is for the shop on PHP 4.4.4.

    I'm suspecting this is related to error I reported in shop running PHP 5.16

    Recommends anyone? Thanks.

    Woody

  9. #49
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    I jumped to conclusions. After making the edits recommended the CAPTCHA module is working. But seven new errors showing up in error log each time.
    It's normal for this recommendations.

  10. #50
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by a_berezin View Post
    It's normal for this recommendations.
    OK. So you're stating that by implementing the edits as I did, that is the casue of the error log entries.

    OK. But if I did not make the recommended edits the mod does not work for me.

    So it is a Catch-22.

    As babygekko recommended I commented out in /classes/captcha_img.php

    1. the if (function_exists('glob') structure
    2. ob_start() and ob_end_clean()

    Is there a suggested method to make the mod work WITHOUT the error log entries?

    I will provide access credentials to view if you wish to check out.

    Woody

 

 
Page 5 of 60 FirstFirst ... 345671555 ... LastLast

Similar Threads

  1. Replies: 68
    Last Post: 29 Jul 2013, 06:33 PM
  2. CAPTCHA using TTF & GD - not working
    By derrr99 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Dec 2010, 04:05 PM
  3. Replies: 13
    Last Post: 2 Jun 2008, 03:29 PM
  4. Captcha using TTF & GD & Tel Not Required (how do I Avoid Overwrites?)
    By CelticKatt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Apr 2008, 04:18 AM
  5. Can CAPTCHA Using TTF & GD be installed in check out?
    By Lainee in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 May 2007, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR