Support » Alpha/Beta/RC » 2.7beta Fatal error – Call to undefined function mb_strlen() in admin-header.php

  • Resolved ucallrt

    (@ucallrt)


    This is after installing the latest build, which installed successfully.

    Call to undefined function mb_strlen() in C:\Inetpub\vhosts\bikeworldnews.com\httpdocs\wp-admin\admin-header.php on line 80

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’re in a pinch and can’t wait for an official fix, open up the admin-header.php file in your wp-admin folder and scroll down to line 80.
    Replace:

    if ( mb_strlen($blog_name, 'UTF-8') > 30 )
    	$title_class = 'class="long-title"';

    with:

    if ( function_exists('mb_strlen') ) {
        if ( mb_strlen($blog_name, 'UTF-8') > 30 )
              $title_class = 'class="long-title"';
    } else {
       if ( strlen($blog_name) > 30 )
           $title_class = 'class="long-title"';
    }

    That should do the trick until an official fix comes out.

    That did it. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2.7beta Fatal error – Call to undefined function mb_strlen() in admin-header.php’ is closed to new replies.