Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can I check the site?

    Thread Starter Amal 007

    (@amalitpace)

    Is there a way i could sent the link to you privately?

    Was this issue resolved?
    I am running into the same issue of the image not loading but when I check via ftp the image is in the folder.
    I am dealing with a server guy that does not seem to like to be bothered very much so I want to try everything I can before going back to him.
    I have already asked him to verify that the GD and FreeType libraries are installed and he said that they were.
    Any suggestions would be greatly appreciated!
    Here is a link to the page the form is on https://cyberoptics.com/cocontact/

    Thank you in advance!

    I am not sure if this helps (b/c I don’t understand it) but when I visit the actual source url of the image I get this message:

    “Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.”

    Hi,

    If you are using the plugin with it’s default configuration, I think the problem is into “upload” folder’s htaccess file. This file is activating mod_rewrite and redirecting your request to index.php file. There are two solutions:

    1. desactivate mod_rewrite into upload folder’s htaccess file (maybe a bad solution)
    2. modify the pluging to do that into it’s htaccess (adding this code on line 288):
      fwrite( $handle, '<IfModule mod_rewrite.c>' ."\n".'RewriteEngine Off'."\n".'</IfModule>' . "\n" );

    In my case, the option two was the solution. I hope this help you. Regards

    @nosoynadie – I made the change:

    if ( $handle = @fopen( $htaccess_file, 'w' ) ) {
    			fwrite( $handle, '<IfModule mod_rewrite.c>' ."\n".'RewriteEngine Off'."\n".'</IfModule>' . "\n" );
    			fwrite( $handle, 'Order deny,allow' . "\n" );
    			fwrite( $handle, 'Deny from all' . "\n" );

    But that was still broke for me so I removed it.

    What did work for me was looking at the error log, which stated:

    [Sat Jul 05 07:32:52 2014] [alert] [client 69.165.217.125] /var/www/wordpress/wp-content/uploads/wpcf7_captcha/.htaccess: allow not allowed here

    So, checking in my case /etc/apache2/sites-enabled/wordpress.conf I see:

    <Directory /var/www/wordpress>
        Options FollowSymLinks
        AllowOverride FileInfo Options

    Now according to https://serverfault.com/questions/543789/why-is-allow-not-allowed-here-in-apache2 and https://httpd.apache.org/docs/2.2/mod/core.html#allowoverride , to let .htaccess perform this job this line needs to include Limit, i.e. be:

    AllowOverride FileInfo Options Limit

    Then it works for me. YMMV.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Captcha image not loading’ is closed to new replies.