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 Image not appearing in comments

February 24, 2010 12:47am

Subscribe [5]
  • #1 / Feb 24, 2010 12:47am

    h0lj0n

    20 posts

    This question may be related to a resolved thread.

    Hi

    The text telling people to write the image appears, but not the image itself. I think it’s because I don’t have the correct server path to captcha folder set up in my admin captcha preferences. However, I don’t know what my correct server path to captcha folder is. I’ve taken a couple of stabs at it and done some internet searches to try to figure it out, but no dice.

  • #2 / Feb 24, 2010 2:29am

    John Henry Donovan

    12339 posts

    h0lj0n,

    You can find your server path by going to your General Configuration  and looking at the Theme Folder Path under

    CP Home ›  Admin ›  System Preferences ›  General Configuration

    so if your path is something like

    here/here/public_html/themes/

    then change it to

    here/here/public_html/images/captchas/

    for your Captcha Preferences

    Make sure that folder has permissions of 777 on it

    What code are you using to show the Captcha in your template?

  • #3 / Feb 24, 2010 3:48pm

    h0lj0n

    20 posts

    Thanks John.

    my Theme Folder Path says it is:

    /home/content/h/o/l/holjon/html//themes/

    I tried to change that to

    /home/content/h/o/l/holjon/html//images/captchas

    but it keeps coming up as invalid

    i did set the permissions of the folder to 777

    the code i’m using is the same code that is posted in the user guide:

    {exp:comment:entries weblog="{my_weblog}" limit="25"}
    
    <div class="comments">
    {comment}
    
    <div class="posted">Posted by {url_or_email_as_author}   on  {comment_date format='%m/%d'}  at  {comment_date format='%h:%i %A'}</div></li>
    </div>
    
    {paginate}
    <div class="paginate">
    <span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
    </div>
    {/paginate}
    
    {/exp:comment:entries}
    
    
    <div class="comments">
    {exp:comment:form preview="{my_template_group}/comment_preview"}
    
    {if logged_out}
    
    Name:
    
    <input type="text" name="name" value="{name}" size="50" />
    
    
    Email:
    
    <input type="text" name="email" value="{email}" size="50" />
    
    
    Location:
    
    <input type="text" name="location" value="{location}" size="50" />
    
    
    URL:
    
    <input type="text" name="url" value="{url}" size="50" />
    
    
    {/if}
    
    
    <a >Smileys</a>
    
    
    
    
    <textarea name="comment" cols="50" rows="12">{comment}</textarea>
    
    
    {if logged_out}
    <input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information
    {/if}
    
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?
    
    {if captcha}
    Submit the word you see below:
    
    {captcha}
    
    
    <input type="text" name="captcha" value="{captcha_word}" size="20" maxlength="20" style="width:140px;" />
    
    {/if}
    
    <input type="submit" name="submit" value="Submit" />
    <input type="submit" name="preview" value="Preview" /></p>
    
    {/exp:comment:form}
  • #4 / Feb 24, 2010 3:49pm

    h0lj0n

    20 posts

    just to be clear, i tried to update my captcha path to:
    /home/content/h/o/l/holjon/html//images/captchas

    based on what i found under the general config

  • #5 / Feb 24, 2010 7:37pm

    Adam Dorsey

    1439 posts

    my Theme Folder Path says it is:

    /home/content/h/o/l/holjon/html/themes/

    I tried to change that to

    /home/content/h/o/l/holjon/html/images/captchas

    You are changing the captcha path, and not the themes path, right?

  • #6 / Feb 25, 2010 1:10am

    h0lj0n

    20 posts

    yes. right.

  • #7 / Feb 25, 2010 2:30am

    John Henry Donovan

    12339 posts

    h0lj0n,

    I tried to change that to

    /home/content/h/o/l/holjon/html//images/captchas

    but it keeps coming up as invalid

    What is the invalid error you see?

    Can you try removing the extra forward slash in there so it only appears as

    /home/content/h/o/l/holjon/html/images/captchas

  • #8 / Feb 25, 2010 2:10pm

    h0lj0n

    20 posts

    i removed the slash and i still receive the same error which is:

    “the following path you submitted is not valid”

    so it won’t let me update it

  • #9 / Feb 25, 2010 9:06pm

    Adam Dorsey

    1439 posts

    Try, using this php script to determine the correct path to that folder?

    Does this make sense?

  • #10 / Feb 25, 2010 10:25pm

    h0lj0n

    20 posts

    where do i use that script?

    also, you typed “http:” twice. is that correct?

  • #11 / Feb 25, 2010 11:21pm

    h0lj0n

    20 posts

    I finally have the server path correct. Now a “?” appears.

  • #12 / Feb 26, 2010 12:10am

    h0lj0n

    20 posts

    i have no idea if i have a gd library installed nor does any of the documentation from google searches make sense to me. is there a way to know if i have a gd library installed, and, if not, learn how to install it? i can’t find much info on the expression engine knowledge base.

  • #13 / Feb 26, 2010 2:09am

    John Henry Donovan

    12339 posts

    h0lj0n,

    is there a way to know if i have a gd library installed, and, if not, learn how to install it?

    Use our Server Wizard from our Requirements page to determine if you have GD installed

    Take a look inside your images/captcha folder. Are any images being generated in there?

  • #14 / Feb 26, 2010 1:51pm

    h0lj0n

    20 posts

    I contacted my system admin folks and found out that the gd library is part of their standard installation.

    and yes, there are images being created in the captcha folder. a whole bunch from today in fact.

    i have the true type thing turned off. i don’t know what else to do.

  • #15 / Feb 26, 2010 5:00pm

    Sue Crocker

    26054 posts

    Is the issue that you’re logged in when you look at the comment form?

    What happens if you log out and try this as a non-logged in (Guest)?

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

ExpressionEngine News!

#eecms, #events, #releases