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 not showing up in comments

July 07, 2007 9:45pm

Subscribe [3]
  • #1 / Jul 07, 2007 9:45pm

    GregF

    18 posts

    After working several hours, trying different settings, trying to trace it down in the code, and searching the manuals and forums, I still can’t can’t get the captcha image to show up in the comments posting area.  The {captcha} tag is not being interpreted.

    This problem is on locahost.  I’m staging EE with the multiple sites on localhost before promoting it to production. Localhost was “brought down” from my production site before installing MSM. It works fine on my production site (gregfuller.com). So far, everything else seems to work on localhost.

    Under “weblog management”, I have “Enable Captcha for Comment Posting?” turned on for the appropriate site and weblog. Under system preferences—> captcha preference I know the url is correct, because I can put the url in my brower, append the name of one of the images in the directory, and the browser finds it.  I know the server path is correct because I can paste into my file explorer and the file explorer goes there correctly.

    I’m sure I’m not logged in on the browser I’m testing it on.

    Under these settings, can anyone think of any reason the captcha image would not show?

    Thanks, Greg

  • #2 / Jul 08, 2007 9:47am

    Derek Allard

    3168 posts

    Did you see captcha images aren’t appearing in the KB?  It catches most issues. 

    Is your captcha folder writable? 

    What version and build of EE (obviously 1.6 if you are using MSM, but latest build?)?

    Could you create a test template with PHP enabled and put this up (obviously, changing the vars as appropriate

    <?php
    echo '<h2>Testing 1,2,3….</h2><p>';<br />
    $img_url= 'http://www.mysite.com/images/captchas/'; // as specified in captcha settings<br />
    $img_path = '/FULL PATH INFO/images/captchas/'; // as specified in captcha settings<br />
    $wordfile_path = 'FULL PATH INFO/system/lib/words.php'; // path to the words.php file inside your renamed system folder</p>
    
    <p>    if (! function_exists('imagejpeg'))<br />
        {<br />
            echo 'no imagejpeg function';<br />
        }</p>
    
    <p>        if ($img_path == '' || $img_url == '')<br />
            {<br />
                echo 'no image path';<br />
            }</p>
    
    <p>        if ( ! @is_dir($img_path))<br />
            {<br />
                echo 'not directory';<br />
            }<br />
            <br />
            if ( ! is_writable($img_path))<br />
            {<br />
                echo 'not writable';<br />
            }<br />
            <br />
            if ( ! file_exists($wordfile_path))<br />
            {<br />
                echo 'no words';<br />
            }    <br />
            <br />
            if ( ! extension_loaded('gd'))<br />
            {<br />
                echo 'no gd';<br />
            }</p>
    
    <p>?>

    Thanks!

  • #3 / Jul 08, 2007 10:43am

    GregF

    18 posts

    No gd.  I loaded gd2 and voila….

    Thanks a bunch !

  • #4 / Jul 08, 2007 12:06pm

    Derek Allard

    3168 posts

    My pleasure Greg, glad you got it running!

  • #5 / Oct 26, 2007 11:48am

    bedford

    5 posts

    I ran the test php you mention in this thread and got the following output:
    Testing 1,2,3….
    not directory
    not writable
    could not find words.php
    gd library found

    I don’t know what this means.  The words.php file is there in the lib folder?  The images and captcha folders are 777?  Can you help me troubleshoot from here?

    Thanks.

  • #6 / Oct 26, 2007 1:23pm

    Lisa Wess

    20502 posts

    bedford, I responded to your post here; please do not cross-post like this, it makes it harder for everyone to follow.

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

ExpressionEngine News!

#eecms, #events, #releases