• Resolved nosilver4u

    (@nosilver4u)


    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).

    https://www.ads-software.com/plugins/cache-enabler/

Viewing 1 replies (of 1 total)
  • Plugin Author KeyCDN

    (@keycdn)

    Good catch, thanks! Added a check and showing an admin message if it is missing.

Viewing 1 replies (of 1 total)
  • The topic ‘fatal error when mbstring package is missing’ is closed to new replies.