Skip to main content

Troubleshooting: the first checks

Most problems with Better Messages come from outside the plugin: a cache that still serves old files, a security plugin that blocks the REST API, or a conflict with another plugin. These six checks find the cause in a few minutes. Do them in order.

1. Update to the latest version#

Open WP Admin → Plugins and update Better Messages. Many reports are fixed in an update that is already out, and the changelog says what each one fixed.

The WebSocket version gets its updates while its license is active. If no update is offered, open Better Messages → Licence and press Check now under Updates. See Your licence.

2. Clear every cache after an update#

After an update the messenger needs its new scripts and styles. A page with old files shows a blank messenger, a missing message field or buttons that do nothing.

  • Purge the cache of your caching plugin.
  • Purge the CDN, if the site uses one.
  • Reload the page with the browser cache off: Ctrl+Shift+R on Windows and Linux, Cmd+Shift+R on a Mac.

See Caching and security plugins.

3. Check that the REST API answers#

Better Messages talks to your site through the WordPress REST API. Open this address in a browser, with your own domain:

https://example.com/wp-json/better-messages/v1/ping

It must show the word pong. On a site whose permalinks are set to Plain, the address is https://example.com/?rest_route=/better-messages/v1/ping. If you get a 403 or 404 error, a login page, a captcha, or the home page of the site, something blocks the REST API before it reaches Better Messages. The usual causes are a security plugin, a firewall of the host, or a setting that closes the REST API to visitors. See Caching and security plugins.

4. Look at the browser console#

  1. Open the page where the problem shows.
  2. Press F12, or right-click the page and choose Inspect, and open the Console tab.
  3. Reload the page and repeat what fails.

Red lines are errors. Then open the Network tab, type better-messages in the filter and look for requests in red, with a status such as 401, 403, 404 or 500. Click one to read what the server answered. The answer usually names the cause: Better Messages says in words why it refuses a request, while a bare error page comes from a firewall or the server.

A screenshot of these two tabs is the most useful thing to send to support.

5. Test for a conflict#

If the problem stays, find out whether another plugin or the theme causes it.

  • On a staging copy of the site, switch off the other plugins, and switch to a default theme such as Twenty Twenty-Five. If the problem is gone, switch them back on one at a time until it returns. A staging copy uses the WebSocket version without taking a site of the license, see Staging sites.
  • On the live site, the Health Check & Troubleshooting plugin from WordPress.org has a Troubleshooting Mode that switches off all plugins and uses a default theme for your own session only, while visitors see the site as usual.

Optimization plugins are the most common cause, see Caching and security plugins.

6. Open the Tools tab#

WP Admin → Better Messages → Settings → Tools checks what Better Messages needs from your site: its database tables, the index of members, and WP-Cron, which sends the email notifications. See The Tools tab.

A critical error on the site#

When WordPress shows "There has been a critical error on this website", it also emails the administrator the technical details: the file and the line of the error. That message, or the last lines of wp-content/debug.log when WP_DEBUG_LOG is on, is what support needs. The plugin can be switched off without the admin by renaming its folder in wp-content/plugins. Your messages stay in the database.

What to send support#

Write from WP Admin → Better Messages → Support, so your message comes with the address of the site and the versions it runs. Add:

  • The address of the page where it happens.
  • What you did, what happened and what you expected, with the exact words of any error.
  • A screenshot of the page, and of the Console and Network tabs.
  • What changed just before: an update, a new plugin, a move to another host, a caching or security setting.
  • The browser and the device, when it happens on one and not on another.

See also#