The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Contact Form 7
[resolved] Database table missing for Contact Form 7 (6 posts)

  1. evaber
    Posted 5 years ago #


    I just installed Contact Form 7 but get this message after activating it:

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

    When I click the link on "..create the table.." the page just reloades and nothing happends. I've tried to unistall and do it all over again with the same result.

    Thankful for any help on this!

  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 years ago #

    Make sure you have a permission to add new tables to your database. If you are not sure, contact your hosting company. They may support you.

  3. Fmstrat
    Posted 5 years ago #

    I have this same problem, and there are posts all over the internet for it. The latest version of Contact Form 7 is broken from the looks of it. Hopefully the creator will figure out what's going on. I even tried to fix it manually, but the code that checks the tables existence always returns false. Specifically, this line, regardless of if the table exists:

    return strtolower( $wpdb->get_var( "SHOW TABLES LIKE '$table'" ) ) == strtolower( $table );

  4. Fmstrat
    Posted 5 years ago #

    I should note, I own the system this is on, and the user has full access to the DB.

  5. Fmstrat
    Posted 5 years ago #

    I take that back, I did find a permission problem. While the user permissions in mysql were correct, the /var/lib/mysql/DB directory was owned by root. Changing ownership to mysql did the trick.

  6. evaber
    Posted 5 years ago #

    And my problem was jus as Takayuki Miyoshi wrote - the permission settings for the database. As soon as I changed them I could create the table by clicking the link and everything seems to work just fine now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic