[Register]
Powered by Elgg

Plugins :: Blog :: Folio wiki "undefined function: mb_detect_encoding" error

April 18, 2007

I've installed the folio plugin (previously succesfully) on a new host.

As soon as it's installed, if I attempt to browse to any page while logged in I get the following error:

 Fatal error: Call to undefined function: mb_detect_encoding() in /data01/kankan/public_html/lib/php-getttext/gettext.inc on line 101

 There is a note here (http://elgg.org/admin/weblog/234.html) about this problem, but the note makes no mention of the Folio plugin and the author's solution does not work for me!

 This is definitely connected to logged in users, because if I go to a new browser I can access the site as Guest; if I attempt to login I get the error.

Can anyone offer any advice?

 

Posted by mark sanders @ Plugins


Comments

  1. I've worked around this error by enclosing the call as follows:

    if(function_exists('mb_detect_encoding')){$source_encoding = mb_detect_encoding($text);}

     I can now login, at least, but I don't know if the call '$source_encoding = mb_detect_encoding($text) is important. Hmm....I'll let you know!!

     

    user iconmark sanders on Wednesday, 18 April 2007, 15:09 UTC # |

  2. I've discovered that the function we're talking about - mb_detect_encoding() - is not defined on the version of PHP (4.4.4) supplied by my hosting co (Zen Internet Hosting).

    This is strange. I wonder why not... 

    user iconmark sanders on Wednesday, 18 April 2007, 15:22 UTC # |

  3. Side note, Mark & I are e-mailing to work on this problem.  Not sure why mb_stirng causes folio to fail, but we'll figure it out and post the result here for the community's benefit.

    user iconNathan Garrett on Wednesday, 18 April 2007, 16:11 UTC # |

  4. To clarify as per our off-line email communication, it looks like gettext is the thing calling mb_detect_encoding.  Since folio doesn't use gettext, the installation of folio is unrelated and shouldn't be effected by the library missing.  I'm not sure if Elgg will work without gettext, but as Mark said, 'finders crossed.'

    user iconNathan Garrett on Wednesday, 18 April 2007, 16:28 UTC # |

  5. Alright, this bug was caught in April and now it is November, 2007. Why isn't there a comment or an update saying if this bug was fixed?

     Btw, I  get this bug while installing elgg! Any idea?

    user iconBrajeshwar on Friday, 16 November 2007, 19:20 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg