• Resolved Paddy Landau

    (@paddy-landau)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    Thread Starter Paddy Landau

    (@paddy-landau)

    Thank you for your reply.

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

    Thread Starter Paddy Landau

    (@paddy-landau)

    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?

    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! =)

    Thread Starter Paddy Landau

    (@paddy-landau)

    @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.

    @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 =)

    Thread Starter Paddy Landau

    (@paddy-landau)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Contact Form 7] Captcha image does not display’ is closed to new replies.