• Resolved Muhammad Zohaib

    (@fangsword)


    Plugin gives an error on PHP 8 and works fine when I switch to 7.4

    PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_kana() in plugins/highlighting-code-block/class/loos_hcb_scripts.php:133

    Stack trace:

    0 /home/user/public_html/wp-includes/class-wp-hook.php(308): LOOS_HCB_Scripts::hook_admin_head()

    1 /home/user/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

    2 /home/user/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

    3 /home/user/public_html/wp-admin/admin-header.php(163): do_action()

    4 /home/user/public_html/wp-admin/index.php(137): require_once('/home/user/…')

    5 {main}

    thrown in /home/user/public_html/wp-content/plugins/highlighting-code-block/class/loos_hcb_scripts.php on line 133

Viewing 1 replies (of 1 total)
  • Thread Starter Muhammad Zohaib

    (@fangsword)

    The mb_convert_kana() is part of the mbstring extension, which is not enabled in PHP 8 by default.

    To resolve this issue, you’ll need to make sure that the mbstring extension is enabled in your PHP 8 installation.

    • This reply was modified 1 year, 2 months ago by Muhammad Zohaib. Reason: Marked as resolved
Viewing 1 replies (of 1 total)
  • The topic ‘Error on PHP 8’ is closed to new replies.