fatal error when mbstring package is missing
-
Couldn’t figure out why Cache Enabler’s webp option wasn’t working on my dev server until I checked the error logs. Found this:
PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/wordpress/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php:525...
Turns out Ubuntu doesn’t include php-mbstring by default when you install PHP, and from searching around, seems other linux distros are doing similar things in newer versions.
It would be nice if Cache Enabler would check to make sure the function exists instead of causing fatal errors, and perhaps you could even throw an admin notice if someone is missing the function(s).
- The topic ‘fatal error when mbstring package is missing’ is closed to new replies.