Page 6 of 60 FirstFirst ... 456781656 ... LastLast
Results 51 to 60 of 593
  1. #51
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    1. Use of function glob can be really problematic. It's possible to refuse it.
    2. Other question, IMHO it's a question to babygekko.

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

    Default Re: Captcha using TTF & GD

    Looking at http://www.php.net/ob_start

    Note the statements:
    " Some web servers (e.g. Apache) change the working directory of a script when calling the callback function."
    - and -
    "the solution provided by PHP, does not function as intended when running PHP as a CGI (on CGI mode (CGI-BUILD (--enable-cgi) and/or CLI)"

    And then later, code recommends that "works on both the non-CGI and the CGI PHP processor types".

    Is this possibly relevant to the issues I have reported?

    Woody

  3. #53
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Hi. I just installed this on 1.3.7 (upgraded from 1.3.6). When I went to my Log In page, I got:

    Fatal error: Cannot redeclare class captcha in /home/nakayama/public_html/includes/classes/captcha.php on line 12

    I used to have the "other" mod installed, and I uninstalled it to the best of my knowledge (wasn't sure how to do it in MySQL, so I deleted the table and something else related to the mod...)

    Thanks,
    Katie

  4. #54
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    I should mention that I'm using a split login page for Paypal Express Checkout.

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

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by a_berezin View Post
    1. Use of function glob can be really problematic. It's possible to refuse it.
    2. Other question, IMHO it's a question to babygekko.
    I followed your suggestions and kept the glob function commented out, and then uncommented:
    ob_start();
    ob_end_clean();

    And everything is cool on the PHP 4.4.4 shop

    So now on to solving my issue on the PHP 5.1.6 shop, which will become the new home for the 4.4.4 shop, that is whenver I can get this captcha issue resolved.

    Thanks again for the assist!

    Woody

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

    Default Re: Captcha using TTF & GD

    KTNaturals!
    I could not reproduce this error. Check once more uninstalling "other" mod.

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

    Default Re: Captcha using TTF & GD

    v 2.5 23.03.2007 13:11
    1. Remove "glob" function;
    2. Add error messages constants;
    3. Add session id to captcha_img.php href link;
    4. Use direct output (no output buffer used);
    5. The functions generateCaptcha(), createCaptchaImg() and showCaptchaImg() are incorporated in one function generateCaptcha();

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

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Woodymon View Post
    Ierror 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
    I discovered the above error was unrelated to CAPTCHA mod install (I was inadvertently calling an image in tpl_header). So no more errors in the error log.

    As a refresher on my issue, the captcha imaged won't display on my 5.1.6 shop but displays on shop running PHP 4.4.4.

    The same goes for displaying captcha image via _test_captcha.php or on the create-account or the contact_us pages.

    In IE I see the broken image icon and ALT tag "Enable this picture" and the outline of where the captcha image should display. Firefox shows the same for a split second when clicking the redraw button.

    The below access log entry created when accessing the shop's contact_us page looks normal...

    [23/Mar/2007:11:59:49] "GET /shop/index.php?main_page=contact_us HTTP/1.1" 200 4755 "http://www.domain.com/shop/index.php?main_page=index"

    When I click the captcha redraw button on the contact_us page I observe the following entries in the access log:

    [23/Mar/2007:11:59:52] "GET /shop/captcha_img.php?0.836195001174669189 HTTP/1.1" 200 7682 "-"

    And when I click the redraw button again:

    [23/Mar/2007:12:00:02] "GET /shop/captcha_img.php?0.4578382568536792 HTTP/1.1" 200 9592 "-" [/quote]

    So it appears the mod is functioning fine, other than displaying the captcha image.

    If it is relevant below are gd related entries in phpinfo():
    gd
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.9
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled
    The above is same on the server running PHP 4.4.4. where the captcha image correctly displays.

    I'm looking for a needle in a haystack here. Could it be something in the Apache config/environment which might be the issue? Any other ideas why the CAPTCHA image will not display on the PHP 5.1.6 shop? If there is any other info I can provide let me know. And thanks for your recommends.

    NOTE: The above was with Andrew's v.3.4 mod. I will install 3.5 and report back.

    Woody

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

    Default Re: Captcha using TTF & GD

    v.3.5 works fine on php 4.4.4 shop. But PHP 5.1.6 shop did get any better :sad:
    Woody

  10. #60
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by a_berezin View Post
    KTNaturals!
    I could not reproduce this error. Check once more uninstalling "other" mod.
    Hi, Andrew.

    I verified that the other mod is uninstalled. As for SQL, I'm not really sure since I don't know it at all. What I did was do "DROP TABLE IF EXISTS anti_robotreg;", and went into the DB and deleted the CAPTCHA Validation from configuration_group (or something like that). I attached the install SQL file for reference. Could you tell me what else I need to do?

    I'm also having a display problem on both my live site and my test site on the Contact Us page. The center column extends all the way to the right.
    http://www.ktnaturals.com/catalog2/i...age=contact_us

    Any help would be appreciated. Thanks!
    Last edited by KTNaturals; 23 Mar 2007 at 08:21 PM.

 

 
Page 6 of 60 FirstFirst ... 456781656 ... 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