Closed (fixed)
Project:
Link
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
11 Mar 2010 at 15:33 UTC
Updated:
27 Jun 2010 at 17:20 UTC
Jump to comment: Most recent file
Hi
i get this warning after install the dev module on my php 4 (PHP 4.4.4-8+etch6) installation of Drupal 6.16
warning: cannot yet handle MBCS in html_entity_decode()! in ./sites/all/modules/link/link.module on line 29.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | link_html_fix.tar_.gz | 34.44 KB | jcfiala |
Comments
Comment #1
transformative commentedI got the same warning (it appears about fifty times in a row, on every page, and so makes editing the site unreasonable). This post explains that it is likely a PHP 4 vs. PHP 5 issue: http://drupal.org/node/103432. If you're lucky enough to be able to upgrade to PHP 5, I'm guessing that would fix it.
Near the bottom of the link that they refer to (http://bugs.php.net/bug.php?id=25670), there is a suggested solution (posted at 2003-09-27 02:11 UTC). That would need to be a module hack on the link module though, which isn't great.
I'm not sure how it'll work, but you could try something like changing line 29 from:
to:
Better still, see if you can get your host to upgrade to PHP 5...
Comment #2
chromix commentedIt seems silly to require PHP 5 for this one line of code when Drupal 5 requires PHP 4. Either way your patch worked great! Thank you for posting it.
Comment #3
jcfiala commentedA bug in PHP4, huh? How crazy.
I'll include this fix before I release the next version.
Comment #4
jcfiala commentedOkay folks, I've done up a possible fix. It's passing tests for me in PHP 5, but then again, it's hard to say given that the problem is with PHP4.
I'm going to try and whip up a test environment with PHP 4 in a moment, but if someone could test this version of link and give me feedback, that would be a big help.
Comment #5
jcfiala commentedHm. My attempts to test on PHP4 have gone flat - Anyone have a server we can test this code on?
Comment #6
jcfiala commentedWell, I wasn't able to test on PHP4, but I found that the code originally suggested in this thread doesn't quite work when running on PHP5. I'm using the suggestion at http://www.php.net/manual/en/function.html-entity-decode.php#75153, and it runs fine in PHP5... which means I hope it runs in PHP4.
I'll be submitting this change to the server, assuming the tests currently running succeed, and hopefully someone can get back to me with feedback then.
Comment #7
jcfiala commentedOkay, I've patched the code in 2.x-dev - wait for today's changes to hit the downloadable version, and give it a try.
Comment #8
eule commentedhi
i try it again but no hope
warning: cannot yet handle MBCS in html_entity_decode()! in ./sites/all/modules/link/link.module on line 29.