Forums

Contact Form 7
[resolved] Captcha image does not display (8 posts)

  1. Paddy Landau
    Member
    Posted 1 year ago #

    Using:

    • Contact Form 7 version 2.4.4
    • Really Simple CAPTCHA version 1.2
    • WordPress 3.1.1

    The form used to work. Now, the CAPTCHA image does not display (it shows only the image's alt tag, i.e. the word "captcha").

    Therefore, I have had to disable the use of CAPTCHA otherwise no one can send a message.

    I think, but I'm not sure, that this problem started only after upgrading to WordPress 3.1.1.

    Any ideas to solve this problem, please?

    http://wordpress.org/extend/plugins/contact-form-7/

  2. joesken
    Member
    Posted 1 year ago #

    Hi Paddy,

    Did you check the permissions on the CF7 folder under the uploads folder to make sure that it can create the image and corresponding php file?

    J

  3. Paddy Landau
    Member
    Posted 1 year ago #

    Thank you for your reply.

    Yes, the permissions are already 777 (although, with my set-up, that is not required).

  4. Paddy Landau
    Member
    Posted 1 year ago #

    I have discovered the problem.

    I had made a small change to the .htaccess file on the server, and accidentally introduced a small error. Small, but important; it affected the loading of images in a small number of specific situations, and even then only with certain browsers. The CAPTCHA was one of the situations.

    If you have this problem, check your .htaccess file carefully.

    How do I mark this thread as solved?

  5. jasewatson
    Member
    Posted 1 year ago #

    Paddy, what exactly was the error in your .htaccess file that you needed to fix. Can you provide the lines and fix? Perhaps we have the same error. Thanks! =)

  6. Paddy Landau
    Member
    Posted 1 year ago #

    @jasewatson: I had put an entry in my .htaccess file to prevent bandwidth-theft (I forget the correct technical name) for images and documents. It runs as follows (replace "example.com" with your own website address, omitting the "www." if you use it):

    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com [NC]
    RewriteRule \.(jpg|jpeg|gif|png|bmp|pdf)$ - [NC,F,L]

    I had misspelled my website address (doh!). This caused intermittent problems in Firefox, also giving different results with different browsers, which is why it took so long to catch the cause. It also prevented the CAPTCHA from displaying.

  7. jasewatson
    Member
    Posted 1 year ago #

    @Paddy Thanks for sharing that info! I know exactly what is wrong now. I actually did something similar, turning on hotlinking protection via my host's (HostMonster) cPanel. My guess is that it adds what you manually added, but in a way that breaks things like we experienced. Glad we could figure this out so others can fix this issue as well! Btw, to mark this as resolved, go ahead and click the drop down underneath "About this Topic" at the top right =)

  8. Paddy Landau
    Member
    Posted 1 year ago #

    Thanks, I've marked the thread as resolved now. I'm glad it helped you.

    Little things like that are so hard to trap, but I've learned a good lesson from it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic