WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Database table missing for Contact Form 7

[Resolved] Database table missing for Contact Form 7

  • Hi!

    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!
    Cheers
    Eva

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

    @takayukister

    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.

    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 );

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

    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.

    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.
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Database table missing for Contact Form 7’ is closed to new replies.