WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. evaber
    Member
    Posted 3 years ago #

    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

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

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

  5. Fmstrat
    Member
    Posted 3 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
    Member
    Posted 3 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.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic