Title: Uncaught Error: Call to undefined function mb_strimwidth()
Last modified: December 21, 2019

---

# Uncaught Error: Call to undefined function mb_strimwidth()

 *  Resolved [skofield](https://wordpress.org/support/users/skofield/)
 * (@skofield)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-mb_strimwidth/)
 * Installed the plugin and got following error message:
 * Uncaught Error: Call to undefined function mb_strimwidth() in /var/www/wollspiele.
   com/wp-content/plugins/stonehenge-em-ongoing-events/config/init.php on line 195
 *  create_sub_menu()
    wp-includes/class-wp-hook.php:288 apply_filters() wp-includes/
   class-wp-hook.php:312 do_action() wp-includes/plugin.php:478 do_action() wp-content/
   plugins/stonehenge-em-ongoing-events/config/init.php:36 create_admin_menu() wp-
   includes/class-wp-hook.php:288 apply_filters() wp-includes/class-wp-hook.php:
   312 do_action() wp-includes/plugin.php:478 do_action() wp-admin/includes/menu.
   php:155 require_once() wp-admin/menu.php:326 require() wp-admin/admin.php:153
   require_once() wp-admin/index.php:10
 * Does someone know what this is about?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-mb_strimwidth/#post-12260999)
 * mb_strimwidth() is a basic PHP function and part of the PHP package that basically
   limits the length of a string. It should be enabled on the server and is normally
   by default.
 * I have never heard someone that did not have this module. You will need to contact
   your ISP to enable it, or (if you have access to your cPanel) you could do it
   yourself.
    That is the safest option, because others might use the function as
   well (as it is normally part of the server configuration).
 * For a quick fix, you can (for now), replace line 195.
    From: `mb_strimwidth( 
   $plugin['short'], 0, 20, '...'),` To: `$plugin['short'],`
 *  Thread Starter [skofield](https://wordpress.org/support/users/skofield/)
 * (@skofield)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-mb_strimwidth/#post-12261039)
 * Interesting. I installed php-mbstring and now it works. Thank you
 *  Plugin Author [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * (@duisterdenhaag)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-mb_strimwidth/#post-12261061)
 * Glad it solved. 😉
 * I hope you’ll enjoy the add-on.

Viewing 3 replies - 1 through 3 (of 3 total)

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

 * ![](https://ps.w.org/stonehenge-em-ongoing-events/assets/icon-256x256.jpg?rev
   =2139771)
 * [Events Manager - Ongoing Events](https://wordpress.org/plugins/stonehenge-em-ongoing-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stonehenge-em-ongoing-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stonehenge-em-ongoing-events/)
 * [Active Topics](https://wordpress.org/support/plugin/stonehenge-em-ongoing-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stonehenge-em-ongoing-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stonehenge-em-ongoing-events/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stonehenge Creations](https://wordpress.org/support/users/duisterdenhaag/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-mb_strimwidth/#post-12261061)
 * Status: resolved