WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Contact form broken since update (19 posts)

  1. ayepod
    Member
    Posted 3 years ago #

    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?

  2. ayepod
    Member
    Posted 3 years ago #

    Here is my contact page if that helps at all

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

    Thanks for looking

  3. webjunk
    Member
    Posted 3 years ago #

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

  4. ayepod
    Member
    Posted 3 years ago #

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

  5. ayepod
    Member
    Posted 3 years ago #

    Any other ideas?

  6. gregjanes
    Member
    Posted 3 years ago #

    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/

  7. webjunk
    Member
    Posted 3 years ago #

    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.

  8. ayepod
    Member
    Posted 3 years ago #

    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.

  9. webjunk
    Member
    Posted 3 years ago #

    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

  10. ayepod
    Member
    Posted 3 years ago #

    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

  11. webjunk
    Member
    Posted 3 years ago #

    Are you hosted under Windows or Linux?

  12. ayepod
    Member
    Posted 3 years ago #

    Linux

  13. webjunk
    Member
    Posted 3 years ago #

    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.

  14. ayepod
    Member
    Posted 3 years ago #

    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

  15. ayepod
    Member
    Posted 3 years ago #

    Oh! Hold on, that didn't copy to my clipboard correctly...

    ... and yes, it's working again!!

    Thanks so much

  16. webjunk
    Member
    Posted 3 years ago #

    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.

  17. banciii
    Member
    Posted 3 years ago #

    Still not working for me... :'(((
    I tried the older version, the classes.php edit, the default links instead of perm.links, but it still send the email but I don't get anything... :(((

  18. webjunk
    Member
    Posted 3 years ago #

    @banciii
    Try starting a new topic. This one is marked Resolved.

  19. banciii
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic