ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Captcha won't show up

December 12, 2007 6:05pm

Subscribe [6]
  • #1 / Dec 12, 2007 6:05pm

    redmercer's avatar

    redmercer

    35 posts

    I have set up an email form, everything works, except I can’t get the captcha to show up. The code is attached below.

    I have troubleshooted by checking the following:

    the path and/or URL to the CAPTCHA directory is not specified correctly under Admin > Captcha Preferences

    This path and URL are both specified correctly.

    images/captchas/ directory (or whichever is specified) is not set to 777/writable

    This directory is set to 777.

    the server does not support True Type Fonts (try turning the option off under ‘Admin > Captcha Preferences’)

    True Type Fonts have been set to “no”.

    GD library isn’t installed and/or working correctly

    ? - I don’t know what this one is. - ?

    system/lib/words.php file doesn’t exist

    This file does exist.

    I have also enabled captchas in Admin > System Preferences > Email Configuration.

    I am at a loss right now. Maybe I’ve got something set up incorrectly in my code? Help?

    {exp:email:contact_form user_recipients="false" recipients="myemail@myemail.com" charset="utf-8"}
    
    
    <br>
    <label for="from">Your Email:</label>
    
    <input type="text" id="from" name="from" size="40" maxlength="35" style="border:0;"/>
    
    <label for="subject">Subject:</label>
    
    <input type="text" id="subject" name="subject" size="40" value=" " style="border:0;"/>
    
    <label for="message">Message:</label>
    
    <textarea id="message" 
    name="message" rows="18" cols="84" style="border:0;">
    </textarea>
    
    
    
    
    
    {if captcha}
    
    Please enter the word you see in the image below:
    
    {captcha}
    
    <input type="text" name="captcha" value=" " size="20" maxlength="20" style="width:136px; border:0;" />
    
    {/if}
    <br>
    <input name="submit" type='submit' value='Submit' style="border:0;"/>
    
    {/exp:email:contact_form}
  • #2 / Dec 12, 2007 6:06pm

    redmercer's avatar

    redmercer

    35 posts

    Forgot to mention, I am running EE v 1.6.1.

  • #3 / Dec 12, 2007 7:55pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    redmercer, you can download wizard.zip which is at:

    Requirements

    Ignore the _wizard.php file and upload wizard.php into your root directory and point your browser to it.

    See what is unsupported and report back.

  • #4 / Dec 12, 2007 10:59pm

    redmercer's avatar

    redmercer

    35 posts

    I didn’t run the requirements check, but I can verify that our server is compliant, as we have another installation (different subfolder, different company) running on the same server, with the captcha working. The only difference I can see between the captcha that is working and this new one that isn’t, is the EE versions. The one that is working is v 1.6. The one that isn’t working is v 1.6.1. That said, should I still run the linked Server Wizard?

  • #5 / Dec 12, 2007 11:39pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Running the wizard is an easy way to see certain PHP settings in a slightly different way than phpinfo() does.

    That’s the main reason to run it.

    Now when you say Captchas aren’t working.. do you have a link?

  • #6 / Dec 13, 2007 7:14pm

    redmercer's avatar

    redmercer

    35 posts

    I ran the wizard:

    “URL Segment Support” is the only thing not supported. And the database checks out fine.

    Any ideas?

  • #7 / Dec 13, 2007 7:32pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Do you have a captchas folder in your images folder?

  • #8 / Dec 13, 2007 8:07pm

    redmercer's avatar

    redmercer

    35 posts

    yes, and it contains “index.html”.

  • #9 / Dec 13, 2007 11:00pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Can you send me login details and FTP login information to my account at .(JavaScript must be enabled to view this email address) ?

    I can’t take a look tonight, but I can in the early morning.

  • #10 / Dec 14, 2007 2:53pm

    redmercer's avatar

    redmercer

    35 posts

    Thanks for the extra help, Sue. I just sent an email.

  • #11 / Dec 17, 2007 8:00pm

    redmercer's avatar

    redmercer

    35 posts

    Hi Sue,

    Any luck on this?

    -redmercer

  • #12 / Dec 17, 2007 11:12pm

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Yup. Just fixed it.

    The problem was a bad path for the Captcha. You’ll need to change your other paths to reflect what I changed for the captcha path.

  • #13 / Dec 18, 2007 12:34pm

    mcneasep

    21 posts

    Hey Sue,

    I’m having the same problem except when I run the wizard it says my server doesn’t support Captcha.  Is there anything that can be done to get it to support Captcha?

    Thanks!

  • #14 / Dec 18, 2007 12:40pm

    Robin Sowell's avatar

    Robin Sowell

    13217 posts

    The wizard checks for:

    function_exists('imagejpeg')

    It’s a required function- if it’s not available, the captchas won’t work.  I believe it needs to be compiled into gd- so you might contact your host and ask them to support it.  That’s the easiest way.

    I know there’s at least one captcha plugin- it might not require it.  But I’m pretty sure it does.  Best solution?  Talk to your host and see if they’ll add support for it.

  • #15 / Dec 18, 2007 12:44pm

    mcneasep

    21 posts

    Thanks, I’ll see if they can get it setup for me.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases