Title: Error: call to undefined function mb_strimwidth()
Last modified: June 29, 2020

---

# Error: call to undefined function mb_strimwidth()

 *  [kayliems](https://wordpress.org/support/users/kayliems/)
 * (@kayliems)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-mb_strimwidth/)
 * Hi, I’ve been using this amazing image compressing images. Great plguin. But 
   recently I received an email from WordPress saying the website is having fatal
   errors with this plugin. Can I get some help please?
 * In Media tab, some of the images say “there has been a critical error on your
   website…” instead of compressed confirmation blurb under “Compression” column.
 * The error details
    =========== An error of type E_ERROR was caused in line 387
   of the file /var/www/html/wp-content/plugins/tiny-compress-images/src/class-tiny-
   image.php. Error message: Uncaught Error: Call to undefined function mb_strimwidth()
   in /var/www/html/wp-content/plugins/tiny-compress-images/src/class-tiny-image.
   php:387 Stack trace: #0 /var/www/html/wp-content/plugins/tiny-compress-images/
   src/views/compress-details.php(6): Tiny_Image->get_latest_error() #1 /var/www/
   html/wp-content/plugins/tiny-compress-images/src/class-tiny-plugin.php(621): 
   include(‘/var/www/html/w…’) #2 /var/www/html/wp-content/plugins/tiny-compress-
   images/src/class-tiny-plugin.php(595): Tiny_Plugin->render_compress_details(Object(
   Tiny_Image)) #3 /var/www/html/wp-includes/class-wp-hook.php(288): Tiny_Plugin-
   >render_media_column(‘tiny-compress-i…’, 2337) #4 /var/www/html/wp-includes/class-
   wp-hook.php(312): WP_Hook->apply_filters(”, Array) #5 /var/www/html/wp-includes/
   plugin.php(478): WP_Hook->do_action(Array) #6 /var/www/html/wp-admin/includes/
   class-wp-media-list-table.php(610): do_action(‘manage_media_cu…’, ‘tiny-compress-
   i…’, 2337) #7 /var/www/html/wp-admin/includes/class-wp-list-table.php(1361): 
   WP_Media

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tinify](https://wordpress.org/support/users/tinify/)
 * (@tinify)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-mb_strimwidth/#post-13052512)
 * Hi [@kayliems](https://wordpress.org/support/users/kayliems/),
 * Do you remember what the last action was before this error message appeared? 
   Did you perhaps update WordPress or the TinyPNG plugin itself?
 * mb_strimwidth() is a basic PHP function and part of the PHP package. It should
   be enabled on the server and is normally by default.
 * You will need to contact your ISP to enable it, or (if you have access to your
   cPanel) you could install it yourself.
 * Installing php-mbstring should fix your issue. If not, could you please send 
   us an email to [support@tinypng.com](https://wordpress.org/support/topic/error-call-to-undefined-function-mb_strimwidth/support@tinypng.com?output_format=md)
   and a developer will assist you further.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Error: call to undefined function mb_strimwidth()’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tinify](https://wordpress.org/support/users/tinify/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-mb_strimwidth/#post-13052512)
 * Status: not resolved