WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.7beta Fatal error - Call to undefined function mb_strlen() in admin-header.php (3 posts)

  1. ucallrt
    Member
    Posted 5 years ago #

    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

  2. cafefrenzy
    Member
    Posted 5 years ago #

    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.

  3. ucallrt
    Member
    Posted 5 years ago #

    That did it. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.