#658 closed defect (bug) (worksforme)
bbPress plugin error - cannot yet handle MBCS in html_entity_decode()!
Reported by: | mypop | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | ||
Cc: |
Description
Error with buddypress-enable.php
Even running PHP 5.2.9 when creating a topic or reply to a topic in BuddyPress it threw up the error:
"There was an error posting that topic." or "There was an error posting that reply."
They are created though.
And on the bbPress side, when I create a topic, or reply to a topic, I get:
"Warning: cannot yet handle MBCS in html_entity_decode()! in /home/sites/my-partyonparty.biz/public_html/forums/my-plugins/buddypress-enable.php on line 53"
once again, they are created tho.
Working on Trent's advise from the forum, I edited /my-plugins/buddypress-enable.php and changed line 53 from:
$post_text = html_entity_decode( $post_text, ENT_COMPAT, "UTF-8" );
to:
$post_text = utf8_decode($post_text);
All worked....
What's the long term fix?
Unfortunately this is a bug in PHP 4:
http://bugs.php.net/bug.php?id=25670
If you're having problems, I'd recommend upgrading to PHP5 as it will fix the problem. If it becomes a major issue for a lot of people I will consider a workaround.