Support » Plugin: NextGEN Facebook - Meta Tags and Share Buttons for Facebook, Google, Pinterest, Twitter, WhatsApp & More » Incorrectly failing to recognize mb_decode_numericentity() function

  • Resolved outrightmental


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JS Morisset


    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…

    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.).


    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:

    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!

    Plugin Author JS Morisset


    Thanks for the feedback. I’ll add the package name to the error message. 😉


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrectly failing to recognize mb_decode_numericentity() function’ is closed to new replies.