How Can We Help?
Voice Messages Add-On – Incorrect response MIME type. Expected ‘application/wasm’
When you are installing Voice Messages Add-on it works out of the box on most of servers, but in some cases server is not configured properly and you can see following error when trying to record new voice message:
Error: TypeError: Failed to execute ‘compile’ on ‘WebAssembly’: Incorrect response MIME type. Expected ‘application/wasm’.
There is 2 ways to fix the issue:
- Ask your host (or do it yourself if you know how to) to tune your server config to serve this file with content-type: application/wasm
https://yourdomain.com/wp-content/plugins/bp-better-messages-voice-messages/assets/js/bpbm-vmsg.wasm - Add this string to your website wp-config.php file:
define('BETTER_MESSAGES_WASM_FALLBACK', true);
After applying one of this fixes, you will be able to record the voice message with no problems.