Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Contact form broken since update

  • Resolved ayepod

    (@ayepod)


    Over the last week i’ve updated my contact form 7 plugin. The first time i upgraded it broke. Ever since when clicking send, the ajax-loader.gif appears but that’s where it stops working.

    I’ve updated since, hoping that would resolve the bug but still have the same problem.

    It worked fine before so is there a way I can roll back to the working version or is there a fix coming soon?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Here is my contact page if that helps at all

    http://vivid-ness.co.uk/contact/

    Thanks for looking

    Try disabling your other plugins and see if the problem clears up.

    Hi webjunk. I’ve just tried this with no joy

    Any other ideas?

    I am having the same problem – upgraded and it is not working. I downgraded to ver. 2.4 and is working fine. You can find older versions to downgrade here: http://wordpress.org/extend/plugins/contact-form-7/download/

    Evidently you diabled the plugin right now.
    Try disabling permalinks. Then see if it works. Then re-enable permalinks and see if it still works.
    Also make sure you have the newest version.

    Great. Success, I’ve changed the permalinks to default and it worked straight away. Though I re-enabled Day and name permalinks and it has stopped working again.

    Are you hosted under Windows or Linux?
    CHeck your .htaccess file. Sounds like the needed settings for permalinks is not correctly in there or you do not have support for .htaccess

    Linux server… here is the contents of my .htaccess…

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # BEGIN WordPress
    
    # END WordPress

    Thanks man

    Are you hosted under Windows or Linux?

    Linux

    Not sure why the permalinks have that effect but try this. In the Contact form 7 plugins directory open includes/classes.php
    Around line 109 you will see:
    $url = wpcf7_get_request_uri();
    change that line to be:
    $url = '/index.php/'.wpcf7_get_request_uri();

    See if that resolves it.

    found that on line 57 i tried it but it wouldn’t accept it… Error message…

    Parse error: syntax error, unexpected T_IF, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/vividnes/public_html/wp-content/plugins/contact-form-7/includes/classes.php on line 57

    Oh! Hold on, that didn’t copy to my clipboard correctly…

    … and yes, it’s working again!!

    Thanks so much

    Just keep in mind when you upgrade the plugin next time (upgrades ae a good thing) you may need to edit that again and if the file has changed not may not be on the same line.
    Glad we got it working for you.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: Contact Form 7] Contact form broken since update’ is closed to new replies.