WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Plugin upgrade = broken Captcha image (15 posts)

  1. Alex997
    Member
    Posted 2 years ago #

    Contact Form 7 was working perfectly until I upgraded it today. Now the captcha image no longer shows on my accountancy site.

    I can see the file on the file system but there is a new (wasnt there before) .htaccess file in there that is blocking it:

    Order deny,allow
    Deny from all
    <Files ~ "^[0-9A-Za-z]+\.(jpeg|gif|png)$">
    Allow from all
    </Files>

    Please can you fix this?

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

  2. Alex997
    Member
    Posted 2 years ago #

    I have just removed the .htaccess file from under wp-content/uploads/wpcf7_captcha and now it is working again.

    This is obvious a new addition with the new plugin release, so please fix it as it must have been added for a reason...

  3. Alex997
    Member
    Posted 2 years ago #

    The plugin has just put the .htaccess file back again automatically! So the site is broken again.

    Please fix as soon as possible.

  4. Alex997
    Member
    Posted 2 years ago #

    Trying to put a blank .htaccess file in there as a placeholder. Hoping it will not be over-written this time.

    If that doesnt work then I will try changing the permission on the file to remove write access.

  5. Alex997
    Member
    Posted 2 years ago #

    Ok - the blank .htaccess file resolved the issue for now at least.

  6. MickeyRoush
    Member
    Posted 2 years ago #

    Are you using Apache? If so, it could be the order directive or just the usage of mod_access (usage of Files is no longer desired and FilesMatch is better for REGEX, etc).

    Try this in your .htaccess instead.

    Order Allow,Deny
    <FilesMatch "^[0-9A-Za-z]+\.(jpeg|gif|png)$">
    Allow from all
    </FilesMatch>

    The author is trying to secure that directory from the server level. Once you have it saved, make sure file permissions are something like 444 so it won't be overwritten.

  7. Alex997
    Member
    Posted 2 years ago #

    I'm running lightspeed.

    Looking at the release notes for the latest update:

    * Auto-generate .htaccess file in the CAPTCHA’s temporary folder to hide answer files in it.

    And I see 2 other people today say the plugin is now broken. So this needs fixing by the author please.

  8. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Does .htaccess not work on Lightspeed? Anyone know the reason it doesn't work?

  9. Alex997
    Member
    Posted 2 years ago #

    .htaccess works fine on Lightspeed, I have one in my home dir and one in my wordpress dir working perfectly.

    The issue I assume is one of syntax in the new .htaccess supplied by Contact Form 7 - it's blocking the browser from accessing and thereby displaying the CAPTCHA images in the target directory.

    Previous versions of Contact Form 7 didn't have this .htaccess file in this directory (given what I see in my recent backups).

  10. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    It works on Apache perfectly. Is there any limitation of .htaccess syntax on Litespeed? Do you know the documentation about it?

  11. MickeyRoush
    Member
    Posted 2 years ago #

    I may be mistaken but the Apache module involved with these directives is mod_access.

    http://httpd.apache.org/docs/2.0/mod/mod_access.html

    So you might have to verify everything is working with that.

  12. wambamboo
    Member
    Posted 2 years ago #

    I'm just here to add that I have had the same problem and deleting the content of the .htaccess file worked for me, thanks @Alex997.

    I am going to wait for an update/ bug fix on Really Simple Captcha before I install the Contact Form 7 update on any of my other sites.

  13. Alex997
    Member
    Posted 2 years ago #

    Something weird has happened. The contact form I have had running for ages has suddenly changed on the accountant site I look after <-click on the link to see.

    It was: Name, Email, Subject, Message, CAPTUCHA, Send
    And is now: Name, Email, Website, Message, Submit

    I havent change anything in the Plugin config or the widget.

    I did upgrade Jetpack plugin the other day, which comes with a new contact form - perhaps this over-wrote something on Contact Form 7?!

    Anyone else running these two plugins together?

  14. Alex997
    Member
    Posted 2 years ago #

    Yeh - deactivating the contact form in Jetpack made the Contact Form 7 reappear. Wonder if I should create a separate post with my last two entries for others that have the same issue?!

  15. Alex997
    Member
    Posted 2 years ago #

    ^ created a new topic: http://wordpress.org/support/topic/plugin-contact-form-7-cf7-plus-jetpack-form-disappears-is-replaced?replies=1

    Still waiting on a fix for this issue with Lightspeed webservers (assuming that's what it is)...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic