[Resolved] Map Filter by distance not working – admin-ajax 500 error
This thread is resolved. Here is a description of the problem and solution.
Problem:
Using a maps distance filter fails with an ajax error code 500 in the console.
Examining the PHP logs, a fatal error is reported:
PHP Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in .../wp-content/plugins/types/application/controllers/utils/utils.php:154
Solution:
The MultiByte String extension must be activated on the server.
If the browser console reports a 500 error for an ajax request it means a fatal error on the server, and the specific error will be reported in your debug logs.
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try using the distance filter again and then inspect the log.
It sounds like you may also find other errors in the logs. The message from Yoast may be a symptom rather than a cause, but it wouldn't hurt to disable Yoast and then test the distance filter again.