Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#658 closed defect (bug) (worksforme)

bbPress plugin error - cannot yet handle MBCS in html_entity_decode()!

Reported by: mypop's profile 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?

Change History (3)

#1 @nicolagreco
16 years ago

  • Milestone set to Forums 1.0
  • Version set to 1.0

#2 @apeatling
16 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

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.

#3 @(none)
15 years ago

  • Milestone Forums 1.0 deleted

Milestone Forums 1.0 deleted

Note: See TracTickets for help on using tickets.