Support » Plugin: Merge + Minify + Refresh » Call to undefined function mb_detect_encoding()

  • Resolved Zelon

    (@zelon)


    Hello,

    I recently updated plugins and found that my WordPress site would no longer function, throwing up a PHP error…..

    
    Call to undefined function mb_detect_encoding()

    This would appear to indicate that Merge-Minify-Refresh started using the mbstring PHP extension in a recent update. This is not included in a default PHP installation, so it might take some users by surprise.

    To fix this problem I simply installed the PHP mbstring extension for my PHP version and then restarted apache.

    
    sudo apt-get install php7.2-mbstring
    sudo service apache2 restart
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Zelon

    (@zelon)

    Marked as resolved because this was more of an informational post anyway. Good luck fellow WordPress-ers!

    Plugin Author launchinteractive

    (@launchinteractive)

    Thanks for posting this @zelon
    I’ve just pushed out a new version of MMR that now checks for the existence of mbstring. If mbstring isn’t installed MMR should still work fine unless a JS or CSS file is encoded in ISO-8859-1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Call to undefined function mb_detect_encoding()’ is closed to new replies.