WordPress.org

Ready to get started?Download WordPress

Forums

[plugin: Contact Form 7 2.0] Upgrade fails? (28 posts)

  1. Mark Waterous
    Member
    Posted 4 years ago #

    I just noticed that Contact Form 7 v2.0 was released, and went to upgrade my servers as I make quite extensive use of this plugin (it's great!).

    Problem is it doesn't seem to be working. Nothing is displayed on the new 'edit' page, and the only thing that displays under the top level is 'add new'. Is anybody else experiencing this?

  2. harrism
    Member
    Posted 4 years ago #

    I have the same problem. The plugin upgrade seems to have deleted my existing forms (not visible to users either). Creating a new form has no effect -- all I see is "add new" even after I save a new form.

    Please fix this!

    Mark

  3. harrism
    Member
    Posted 4 years ago #

    The good news is that re-installing v1.10 fixes it, so I will stick with that for now. Maybe you should do the same, delayedinsanity.

    Mark

  4. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    Note that you need to deactivate a plugin before replacing files. When you re-activate it, Contact Form 7 2.0 creates new table and copy your old data into the table. If you are using automatic plugin upgrade of WordPress, it does all those processes for you.

  5. efriebe
    Member
    Posted 4 years ago #

    I had the same problem today, it was impossible to create a new contact form. If you do not deactivate previous version before update you will get this problem. So I deactivated the plugin, deleted it from server and made a new installation ov version 2.0 - now it's working as I want.

  6. Mark Waterous
    Member
    Posted 4 years ago #

    @harrism wayyyy ahead of ya haha, I reinstalled the old version immediately following this discovery. I don't like having broken plugins running on my sites if I can help it.

    @takayukister that makes sense, I'll run a backup of my database first, then give the update another try and let everybody here know how it goes!

    ...seemed to work just fine, didn't lose my forms, which makes me happy. I do have one question for you though @takayukister, why did you move it to it's own menu page when there really seems to be no difference between it and the 'edit' submenu option? I moved it back to Tools so that it's still easy to find but nice and tucked away when not in use. :)

  7. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    @delayedinsanity It's good to hear that it has gone well.

    The reason why I moved the menu to top level is that its sub menus are going to be added in the future. And I'm thinking of module creators who needs own sub menu under Contact main menu. The release of v2.0 was the best timing for change.

  8. szylla
    Member
    Posted 4 years ago #

    The 7.2.0 plugin doesn't work in any way of installation. I reinstalled the old version immediately.
    Using automatic plugin upgrade, doesn't work.
    Upgrading manually with or without de-activation, doesn't work, too.

  9. maestro2012
    Member
    Posted 4 years ago #

    I have the same problem.

  10. Mark Waterous
    Member
    Posted 4 years ago #

    What version of WordPress are you both running? Worked flawlessly for me the second time when I deactivated the original plugin.

  11. maestro2012
    Member
    Posted 4 years ago #

    I use WordPress 2.8.2. On localhost install without problem, but on server upgrade fails. After install I have only "add new" button. If I add new form, after save i have still only button "add new".
    Old version Contact Form7 working OK.

    Please fix problem.

  12. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    What will happen if you deactivate Contact Form 7 and activate it again?

  13. maestro2012
    Member
    Posted 4 years ago #

    Deactivate and activate plugin not help. I tried this already.
    I tried also delete files, and install new version contactform7.
    But it is also not solved the problem.

  14. sbahns
    Member
    Posted 4 years ago #

    We're having the same problem. We are running it on WPMU. We did have it on WPMU 2.7.1 and upgraded to Contact Form 7 2.0 and encountered the problem. We lost all our forms. We reverted back to the old version and they came back.

    Today we upgraded to WPMU 2.8.2 and I tried to see if CF7 2.0 would work, but it still doesn't. Problem I am having now is We've lost our forms AND can't get the system to revert to the old version of the plugin.

  15. Lautrec
    Member
    Posted 4 years ago #

    I have the same problem. I upgraded to CF7 2.0 and all my forms are gone. I used the automatic plugin upgrade of WordPress. (I see the default form when you use it for the first time. So CF7 2.0 made new tables.) Deactivating and deleting CF7 2.0 and installing and activating CF7 1.10 could not save the problem. (Now I see only "add new form").

    Two months ago I rebuild my site, for test purpose, on my localhost. I noticed the same problem with CF7 1.10. After installing the files and the database, all my forms have been lost. I needed to rebuild them again.

    Unfortunately with WP-table-reloaded, another excellent WordPress plug-in, I had the same experience. All my table have been lost when I rebuilded my site. Today I upgraded there plug-in with the latest version and the same problem re-occurs. Perhaps this info can help you troubleshooting this issue. I'm still using WP 2.8 and the Atahualpa Theme.

    Wbr
    Jan

  16. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    @Lautrec your story is really curious. Would you tell us more in detail?

    What happens if you once delete Contact Form 7, delete the wp_contact_form_7 table from your database, and install the latest Contact Form 7 again?

    Does your server assigns enough memory for the PHP? Do you use other plugins with them? I ask those because I guess your issue is related to some kind of memory shortage.

  17. maestro2012
    Member
    Posted 4 years ago #

    I tried updating to version 2.0.1 but still I have a problem.
    "The database table for Contact Form 7 does not exist. You must create the table for it to work."
    When i click "create the table"
    nothing happens, continue to display the information to create a table.

  18. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    @maestro2012 what version of WordPress, MySQL and PHP do you use? And didn't you see any other messages?

  19. maestro2012
    Member
    Posted 4 years ago #

    As I wrote above I use WordPress 2.8.2,
    MySQL Version: 5.0.51b
    PHP Version: 5.2.10.
    The problem with the installation occurs on an external server. On the localhost I don't have any problems with the update.
    No other messages. There are no PHP errors.

    Regards.

  20. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    @maestro2012 thank you. I think this issue is related to MySQL, if you are not using some kind of unusual plugins.

    If you know about database, could you execute this SQL on the database and tell me the result, please?

    SHOW TABLES LIKE '%contact_form_7'

  21. maestro2012
    Member
    Posted 4 years ago #

    I fixed. I did not have that table ...contact_form_7 on an external server. It may have been deleted in the unsuccessful attempts to update.
    I copied this table from my localhost wordpress and updated plugin. Now it works. Thank you for your help in finding a solution.

  22. Bronislaw Gracz
    Member
    Posted 4 years ago #

    I have exactly the same problem as maestro2012. I get these msg's in my error_log. By the way I get the same kind of msg from Twitter Tools - it seems that some of my plugins are unable to create tables. Though I see tables from NextGen Gallery and Wassup existing and working.

    Here is error_log:

    WordPress database error Table 'mydb.wp_contact_form_7' doesn't exist for query SELECT * FROM wp_contact_form_7 WHERE cf7_unit_id = 1 made by require, require_once, include, include, the_content, apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, wpcf7_contact_form_tag_func, wpcf7_contact_form
  23. Lautrec
    Member
    Posted 4 years ago #

    Takayukister

    Sorry for my very late reaction, due to holiday etc. I deleted Contact Form 7 every where I could without results. Finally I rebuild the complete website with a new database and all problems are gone (even for WP-table-reloaded).

    Thanks for the suggestions.
    Jan

  24. Bronislaw Gracz
    Member
    Posted 4 years ago #

    Yes and any ideas for these who do not wish to rebuild the site?

  25. Walker
    Member
    Posted 4 years ago #

    I tried deleting, re-uploading with and without disabling CF7 first and both give the same result:

    The database table for Contact Form 7 does not exist. You must create the table for it to work.

    NOTE: I checked my database and there is no contact_form_7 or whatever the plugin's associated table is called there. There are only:

    wp_cformsdata
    wp_cformssubmissions
    wp_comments
    wp_links
    wp_options
    wp_postmeta
    wp_posts
    wp_terms
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users

    I am guessing the CFORMS plugin I used as an alternative for Contact Form 7 caused the conflict, but I have disabled CFORMS before trying to get Contact Form 7 working, so I assume it is not CFORMS fault.

  26. brmecham
    Member
    Posted 4 years ago #

    I was also having trouble upgrading/installing Contact Form 7 on one of my sites, because it wasn't creating the database table for me.

    Another site did successfully install so my resolution to the problem was in copying the database table from the one site to the other using PHPMyAdmin... here's the code I used:

    CREATE TABLE
    wp_contact_form_7` (
      cf7_unit_id bigint(20) unsigned NOT NULL auto_increment,
      title varchar(200) NOT NULL default '',
      form text NOT NULL,
      mail text NOT NULL,
      mail_2 text NOT NULL,
      messages text NOT NULL,
      additional_settings text NOT NULL,
      PRIMARY KEY  (cf7_unit_id)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
    

    Not sure if that will work as pasted above because it's removing some of the formatting... so, here's a link to a sql with the correctly formatted code in it, open it then run the query in MySQL or via PHPMyAdmin: http://www.weblifellc.com/images/wp_contact_form_7.sql

  27. ldexterldesign
    Member
    Posted 4 years ago #

    @brmecham - Thanks mate. This worked a treat. Not sure what happened with my install? I retried it several times and got the same error:

    'The database table for Contact Form 7 does not exist. You must create the table for it to work.'

    I installed the latest WP (2.9.1) and the latest Contact Form 7 (2.1) on my other machine last night (PC) - no problem.

    Yet tonight on my Mac I have to run your SQL to get the CF7 up and running. Weird.

    Cheers,

  28. Walker
    Member
    Posted 4 years ago #

    Just disable the plugin before upgrading to avoid this problem.

Topic Closed

This topic has been closed to new replies.

About this Topic