WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Facebook: Advanced Optimization for All Social Websites
[resolved] Incorrectly failing to recognize mb_decode_numericentity() function (4 posts)

  1. outrightmental
    Member
    Posted 1 year ago #

    I'm running WordPress 3.5.2 on PHP 5.3, yet when I activate NGFB then every page of my wp-admin panel shows this red error message at the top:

    NGFB Warning : The mb_decode_numericentity() function (available since PHP v4.0.6) is missing. This function is required to decode UTF8 entities. Please update your PHP installation as soon as possible.

    I've been searching everywhere, but can't find anyone else having this problem. Thoughts? Any help is appreciated.

    http://wordpress.org/extend/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    I've only seen one other person with this problem, which is why I coded that check in the first place. The test in NGFB is fairly straightforward:

    function_exists( 'mb_decode_numericentity' ) ? true : false;

    If the function is not available, then it's not.

    Although you're running a recent PHP version, perhaps it's not complete? It's supposed to be a standard function of PHP 5...

    http://php.net/manual/en/function.mb-decode-numericentity.php

    FYI - Although the error appears, it's harmless -- there's another check before the function is actually used, and bypassed if it's not there. The downside is the possibility of having UTF8 encoded characters in your text (screws up some string length calculations, etc.).

    js.

  3. outrightmental
    Member
    Posted 1 year ago #

    Thanks for getting back to me so quickly...

    Some further research reveals that my build of PHP was not compiled with the --enable-mbstring option:

    http://www.php.net/manual/en/mbstring.installation.php

    Here's the fix that worked for me (CentOS Linux):

    yum install php-mbstring
    httpd -k restart

    [NOTE from danbrown AT php DOT net: This is true for all Red Hat Linux-based distributions using RPM and the yum package manager; this includes RHEL, Fedora, CentOS, Mandriva, and Intrinsic Linux, among others.]

    Hope this helps anyone else having the same issue!
    Nick

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the feedback. I'll add the package name to the error message. ;-)

    js.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.