OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



cannot yet handle MBCS in html_entity_decode

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

cannot yet handle MBCS in html_entity_decode

Postby jonb » Wed Jul 04, 2007 10:37 am

Just done a brand new installation of OCS via CVS and I'm getting 2 error messages on a regular basis, usually when something is being updated or saved.

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/baillie/public_html/ocs2/classes/core/Core.inc.php on line 44

This is repeated 1688 times! and then

Warning: Cannot modify header information - headers already sent by (output started at /home/baillie/public_html/ocs2/classes/core/Core.inc.php:44) in /home/baillie/public_html/ocs2/classes/core/Request.inc.php on line 40

Not related to this forum, but I'm getting exactly the same error message on a brand new installation of OJS as well.

Any advice?
jonb
 
Posts: 3
Joined: Wed Jul 04, 2007 4:32 am

re: cannot yet handle MBCS in html_entity_decode

Postby mj » Wed Jul 04, 2007 7:01 pm

Hi Jon,

We've never seen this issue before, but the best I can tell, it's a known bug in certain versions of PHP (notably 4.3.2); see:

http://bugs.php.net/bug.php?id=25670
http://bugs.php.net/bug.php?id=27626

The disappointing thing seems to be that the PHP developers aren't going to fix it in PHP4 -- only PHP5, in which case we'll have to find a workaround. Can you confirm which version of PHP you're running?

Thanks,
MJ Suhonos
OJS Development Team
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

re: cannot yet handle MBCS in html_entity_decode

Postby jonb » Thu Jul 05, 2007 12:50 am

Ah! That explains it. My server config is...

OS platform Linux
PHP version 4.4.4
Apache version Apache 5.1.33334
Database driver mysql
Database server version 4.1.21-standard

I can't update to PHP5 on that server yet as another script hosted there can't run on PHP5. Is there anything I/you can do to correct the issue, or will I have to wait until I upgrade.
jonb
 
Posts: 3
Joined: Wed Jul 04, 2007 4:32 am

re: cannot yet handle MBCS in html_entity_decode

Postby mj » Thu Jul 05, 2007 8:53 am

Hi Jon,

Looking further, and noting your PHP version, it looks like the PHP team stopped supporting this fix for all PHP4 versions *beyond* 4.3.2, so it's likely that it affects a fairly large number of PHP4 installations.

I've updated the current CVS tree to use our internal character encoding functions instead of PHP's buggy one -- try updating from this recent fix and please let me know if it solves your problem.

Regards,
MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

re: cannot yet handle MBCS in html_entity_decode

Postby jonb » Thu Jul 05, 2007 9:52 am

Yep, that works :D
Thank you so much!
jonb
 
Posts: 3
Joined: Wed Jul 04, 2007 4:32 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests