The Tools tab
WP Admin → Better Messages → Settings → Tools shows the state of what Better Messages needs from your site, and has the buttons that repair it. Look here first when messages are not saved, members are missing from the search, or email notifications stopped.
Database#
The plugin keeps its conversations and messages in tables of its own in your WordPress database.
- Schema Version says whether the tables are at the version the plugin expects. Right after an update it can say an upgrade is pending for a short time, while the tables are brought up to date in the background.
- The list under it checks every table: whether it exists, its columns and indexes, and its collation. A table with a problem says what is missing or different.
- Repair All creates what is missing and fixes the collation of every table. Large tables can take a while. Fix Collation does it for one table.
Use Repair All when the page reports a missing table or column, or when the error log has database errors that name a Better Messages table, such as an unknown column.
On a site that uses stored data encryption, run Repair All only on Better Messages 3.3.0 or later.
UTF8MB4 Encoding#
Emoji need the utf8mb4 character set. Supported means the database can store them.
If emoji turn into question marks in messages while accented letters come through, the text reached the database over a connection that cannot carry emoji. Better Messages saves through the same connection as WordPress itself, so test WordPress: save a draft post with an emoji in its title and reload the editor. If the emoji is gone there too, the whole site is affected, and the cause is a plugin, the theme or the database server of the host. The conflict test in the first checks tells which.
User Index#
Better Messages keeps its own index of the members of your site, so that the user search and the member lists of large rooms stay fast.
- Last sync and Next sync say when the index was rebuilt and when it will be again. It is rebuilt once a week, by WP-Cron.
- Synchronize Now rebuilds it at once. On a site with many members it can take a few minutes.
Press Synchronize Now when a member cannot be found in the search. This happens to members who were added in a way that skips the usual WordPress registration, such as an import or a sync from another system. See Members cannot be found or written to.
WP Cron Jobs#
Better Messages does its background work through WP-Cron, the task scheduler of WordPress. One job runs every minute and does what is due:
- sending email notifications
- sending scheduled messages and mass messages
- deleting old messages and inactive guests
- rebuilding the user index
The list shows each job with its Next Run. When a job is overdue, the page says WP Cron is not working properly on this site.
WP-Cron runs only when someone visits the site, so on a site with few visitors the jobs run late. It does not run at all when DISABLE_WP_CRON is set in wp-config.php and no cron job of the server calls it. The fix is a real cron job on the server that opens wp-cron.php every minute:
* * * * * curl -s "https://example.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1
Most hosts have a page for cron jobs in their control panel, and their support can add this line for you. The WP Crontrol plugin from WordPress.org shows every scheduled job of the site and when it last ran.
Local Database#
Each browser and app keeps a copy of the conversations it has loaded, so the messenger opens at once and works without a connection. The copy is kept across plugin updates and settings changes.
Reset for all users makes every browser and app drop its copy and download the conversations again from the server on its next load. Unsent drafts on those devices are lost too. Encryption keys are kept.
Use it after a change that should make every device download its copy again.
Reset Database#
Reset Database deletes all messages and conversations and reinstalls the database tables. It cannot be undone, and it asks you to type RESET. Make a backup first. It is for a site that starts over, never a repair.
Settings Transfer#
Download Settings exports every plugin setting, the design included, as a JSON file, and Import reads such a file back. Use it to copy the settings from a staging copy to the live site, or to keep a copy before a large change. See Installation.