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.

Captchas - ARGHH!

March 24, 2009 12:07pm

Subscribe [2]
  • #1 / Mar 24, 2009 12:07pm

    lodonnell

    6 posts

    Help! My Captchas Don’t Work???

    I wanted to add Captchas to a site I am building, but when I did the obvious, it wasn’t working.

    Rather than beat my head against some minor config item that I may have screwed up, I create a new install. Here’s what I did…

    1 - Clean (out of the box) EE 1.6.7 installation on Max 0S 1.5.6 running mysql 5.0.67 with a new database on a MacBook Pro
    2 - Perms seem OK

    atlas:quicktest leo_odonnell$ /usr/local/sbin/eesetpath.sh 
    eesetpath.sh [system dir] - Set permissions for Expression Engine
    drwxrwxrwx@ 3 leo_odonnell  leo_odonnell  102 Jan 22 00:10 images/avatars/uploads/
    drwxrwxrwx@ 3 leo_odonnell  leo_odonnell  102 Jan 22 00:10 images/captchas/
    drwxrwxrwx@ 4 leo_odonnell  leo_odonnell  136 Mar 24 10:45 images/member_photos/
    drwxrwxrwx@ 3 leo_odonnell  leo_odonnell  102 Jan 22 00:10 images/pm_attachments/
    drwxrwxrwx@ 3 leo_odonnell  leo_odonnell  102 Jan 22 00:10 images/signature_attachments/
    drwxrwxrwx@ 3 leo_odonnell  leo_odonnell  102 Jan 22 00:10 images/uploads/
    -rw-rw-rw-@ 1 leo_odonnell  leo_odonnell  603 Mar 24 10:38 path.php
    drwxrwxrwx@ 8 leo_odonnell  leo_odonnell  272 Mar 24 10:38 system/cache/
    -rw-rw-rw-@ 1 leo_odonnell  leo_odonnell  678 Mar 24 10:38 system/config.php
    -rw-rw-rw-@ 1 leo_odonnell  leo_odonnell  678 Mar 24 10:38 system/config_bak.php

    3 - Turned on captchas in:

    CP Home  ›  Admin  ›  Weblog Administration  ›  Weblog Management  ›  Edit Weblog Preferences > Comment Posting Preferences
    CP Home  ›  Admin  ›  System Preferences  ›  Captcha Preferences
       Server Path to Captcha Folder: /Library/WebServer/Documents/quicktest/images/captchas/
       Full URL to Captcha Folder: <a href="http://localhost/quicktest/images/captchas/">http://localhost/quicktest/images/captchas/</a>
       All else to "Yes"
    CP Home  ›  Admin  ›  Members and Groups  ›  Membership Preferences

    4 - Cleared my Cached Data from Utilities

    There was No Joy in Boston today 😖 just an empty line in the page source where a CAPTCHA should be.
    Images work fine though. I can add Avatars and Photos as much as I like.

    What can I try next?

  • #2 / Mar 24, 2009 12:11pm

    Ingmar

    29245 posts

    Make sure your captcha directory is set to permissions 777, your image resizing protocol is supported and configured correctly. Check both your server path and URL to Captcha folder, and that your special Captcha files exist, texb.ttf and words.php and that they are in their appropriate directories and have the right permissions… that should cover the bases, I think.

  • #3 / Mar 24, 2009 4:36pm

    lodonnell

    6 posts

    Thanks for taking a look:

    - as you can see from my original post my permissions look good on the captchas directory with appropriate full filesystem path for the directory and url.
    - as for texb.ttf and words.php. The following output is from my terminal shell with commands run from the root of my install:

    atlas:quicktest leo_odonnell$ pwd
    /Library/WebServer/Documents/quicktest
    
    atlas:quicktest leo_odonnell$ ls -l system/lib/words.php system/fonts/texb.ttf 
    -rw-r--r--@ 1 leo_odonnell  leo_odonnell  143830 Sep 30  2005 system/fonts/texb.ttf
    -rw-r--r--@ 1 leo_odonnell  leo_odonnell   11861 Nov 13 17:11 system/lib/words.php
    
    atlas:quicktest leo_odonnell$ sum system/lib/words.php system/fonts/texb.ttf
    48259 12 system/lib/words.php
    47246 141 system/fonts/texb.ttf

    I wouldn’t think that there is an issue with user id’s since the permissions look right.

    Is there some apache module I haven’t enabled?

    Thanks,
      Leo

  • #4 / Mar 24, 2009 4:40pm

    Ingmar

    29245 posts

    Do you have GD/GD2/ImageMagick? You’ll need one of them, I think.

  • #5 / Mar 24, 2009 4:56pm

    lodonnell

    6 posts

    Right! I guess that would be it - I’ll post (good or bad) again when I’ve got the install done.

    Thanks - Leo

  • #6 / Mar 24, 2009 4:59pm

    Ingmar

    29245 posts

    Great 😊 we’ll be here.

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

ExpressionEngine News!

#eecms, #events, #releases