• Resolved devrawnie

    (@devrawnie)


    After updating the bp-better-messages plugin from version 2.0.67 to 2.0.68

    I am getting the following error

    WordPress database error: [Table 'db_name.wp_bm_threads' doesn't exist]
    WordPress database error: [Table 'db_name.wp_bm_message_recipients' doesn't exist]

    I tried the following steps in order:

    1. Deactivated then deleted the bp-better-messages plugin
    2. Removed all tables with prefix bm from the database
    3. Removed options from wp_options table containing the word bp-messages or better-messages.
    4. Re-installed the plugin

    Next time when I install the plugin again, i see the same error as mentioned above

    I put log statements inside the plugin code and here is the wordpress error

    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL,
                          <code>date_sent</code> datetime NOT NULL,
                     ' at line 5 for query CREATE TABLE IF NOT EXISTS <code>wp_bm_message_messages</code> (
                          <code>id</code> bigint(20) NOT NULL AUTO_INCREMENT,
                          <code>thread_id</code> bigint(20) NOT NULL,
                          <code>sender_id</code> bigint(20) NOT NULL,
                          <code>message</code> longtext CHARACTER SET utf8mb3 COLLATE  NOT NULL,
                          <code>date_sent</code> datetime NOT NULL,
                          PRIMARY KEY (<code>id</code>),
                          KEY <code>sender_id</code> (<code>sender_id</code>),
                          KEY <code>thread_id</code> (<code>thread_id</code>)
                        ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wordplus

    (@wordplus)

    Hi there!

    Since 2.0.0 the code was not changed, so I dont think the update to latest version caused that, but probably they were missing before also!

    Which database version do you use?

    Can you contact support this way:
    https://ww.wp.xz.cn/support/topic/how-to-ask-for-support-2/

    Or press support here:
    https://www.better-messages.com/

    So we can take a quick look into the issue?

    Thanks!

    Thread Starter devrawnie

    (@devrawnie)

    I am using MySQL 8.0.31

    Before the update the plugin was working. I updated and it broke. The CREATE TABLE query is failing supposedly

    Plugin Author wordplus

    (@wordplus)

    Hi there!

    That function is supposed to run only on 1st plugin install! It couldnt be broken because of plugin update. And plugin cant delete the tables which was already installed, there is some other thing happened at your website.

    Thanks!

    Plugin Author wordplus

    (@wordplus)

    Hi there!

    Locally was able to try with MySQL 8.0.24 and it worked smoothly.
    Will try with 8.0.30 later today also, but I dont think that is the issue.

    Do you know why the charset is set to utf8mb3 at your website? (usually its utf8mb4)
    Probably that is where issue is?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Tables missing from database after updating’ is closed to new replies.