Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    help question CAPTCHA not working

    Hi,

    I have recently installed the CAPTCHA TTF mod on version 1.3.8 and when I visit my contact page, I now get a HTTP 500 error.

    Interestingly, if I comment out the following code

    if (is_object($captcha) && !$captcha->validateCaptchaCode())) {
    $error = true;
    $messageStack->add('contact', ERROR_CAPTCHA);
    }

    from file includes/modules/pages/contact_us/header_php.php
    I get my contact page back but the CAPTCHA validation code doesn't work (no surprise)

    Anyone have any ideas why this might be ?

    Thanks,

    Andy

  2. #2
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: CAPTCHA not working

    I added a line break and then removed it, with a bit of tweaking it now works, I needed to alter the code in the mod to get the validation to work, code now reads:-

    PHP Code:
      if (is_object($captcha) && !$captcha->validateCaptchaCode()) {
        
    $error true;
        
    $messageStack->add('contact'ERROR_CAPTCHA);
      }
      
      if (
    $zc_validate_email and !empty($enquiry) and !empty($name) and !$error) { 

 

 

Similar Threads

  1. v151 Captcha not working, tried uninstalling, still not completing.
    By neophyteuk in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 18 Dec 2014, 05:08 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. Default CAPTCHA feature not working
    By derrr99 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 13 Dec 2010, 04:59 AM
  4. CAPTCHA spam protection add ons not working on my ZC 1.3.8a
    By wcironsales in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2010, 04:07 AM
  5. Captcha installed but verification not working
    By starks in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 10 Jul 2008, 10:50 PM

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