Support » Plugin: Schema » PHP Fatal error: Uncaught Error: Call to undefined function mb_strrpos()

  • Resolved tjldesigns

    (@tjldesigns)


    Hi there,

    We seem to be getting the following error on some pages, which then breaks the page, so for now we have disabled the plugin, just wondered if you knew what would cause this?

    #0 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(254): schema_wp_get_truncate_to_word(‘The Internet of…’)
    #1 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(164): schema_wp_get_schema_json_prepare(987)
    #2 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(110): schema_wp_get_schema_json(‘BlogPosting’)
    #3 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(53): schema_wp_get_enabled_json(987)
    #4 /home/website/public_html/wp-includes/class-wp-hook.php(286): schema_wp_output(”)
    #5 /home/website/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /home/website/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /home/website/public_html/wp-in in /home/website/public_html/wp-content/plugins/schema/includes/misc-functions.php on line 899
    [05-Feb-2019 17:21:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mb_strrpos() in /home/website/public_html/wp-content/plugins/schema/includes/misc-functions.php:899
    Stack trace:
    #0 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(254): schema_wp_get_truncate_to_word(‘Advising a lead…’)
    #1 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(164): schema_wp_get_schema_json_prepare(2240)
    #2 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(110): schema_wp_get_schema_json(‘BlogPosting’)
    #3 /home/website/public_html/wp-content/plugins/schema/includes/json/schema-output.php(53): schema_wp_get_enabled_json(2240)
    #4 /home/website/public_html/wp-includes/class-wp-hook.php(286): schema_wp_output(”)
    #5 /home/website/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /home/website/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /home/website/public_html/wp- in /home/website/public_html/wp-content/plugins/schema/includes/misc-functions.php on line 899
    [05-Feb-2019 17:21:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mb_strrpos() in /home/website/public_html/wp-content/plugins/schema/includes/misc-functions.php:899
    Stack trace:

    Thanks ever so much,
    TJ

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    Thanks for pointing out to this!

    It seems that MBString is not installed on your host server. At any how; I just found out this is not a default PHP extension, so I’ve modified the function to avoid using it.

    I’ve updated the plugin files here at wp.org, please remove the plugin from your site and install a fresh copy.

    Let me know how it goes.

    Ahh excellent, thanks so much for updating this, I’ve done as you suggested, and all working great again – thank you :).

    Plugin Author Hesham Zebida

    (@hishaman)

    Glad to hear that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function mb_strrpos()’ is closed to new replies.