[Register]
Powered by Elgg

Plugins :: Blog :: BOOKMARK plugin

May 30, 2007

i've installed the bookmark Plugin. It works fine, untill you add a link:

 I get this error:

Warning: cannot yet handle MBCS in html_entity_decode()! in /opt/guide/www.community.breinlink.nl/HTML/units/bookmarks/bookmarks_posts_view.php on line 109

does anyone knows what it means or how to solve it? thank you!

P.S. Howto translate this one into dutch? ;)

Posted by darkd @ Plugins


Comments

  1. Hi, Lachanfall

    1) UTF-8 is used as the charset in this function which is supported only in PHP 4.3.0 and later

    2) This function doesn't support multi-byte character sets in PHP < 5.

    The best solution is to upgrade your system to php 5

    more info: http://at2.php.net/manual/en/function.html-entity-decode.php 

     

    cheers,

    Beni 

    user iconbeni on Thursday, 31 May 2007, 11:31 UTC # |

  2. Well, upgrading to php 5 was not an option for me. . so i just systematically commented out the offending lines of code and it works fine without them.  YOu need to click through on all the links like "edit" "tags" "add" and the rest because you have to comment out lines of code on at least 3 files. . .

    Thanks for the cool plugin though!

    user iconTodd on Saturday, 02 June 2007, 16:00 UTC # |

  3. I'm using PHP Version 4.4.6 on my server but see the same error. Can you please be more specific Todd on which files to edit?

    user iconWiebe Kunst on Monday, 04 June 2007, 21:40 UTC # |

  4.  

    I commented out the following lines in /units/bookmarks/bookmarks_posts_edit.php 

    [snavti@shiggy bookmarks]$ diff bookmarks_posts_edit.php bookmarks_posts_edit.php.bak
    58c58
    <       // $post_b->title = html_entity_decode($post_b->title, ENT_COMPAT, 'utf-8');
    ---
    >       $post_b->title = html_entity_decode($post_b->title, ENT_COMPAT, 'utf-8');
    62c62
    < // $title = html_entity_decode($title, ENT_COMPAT, 'utf-8');
    ---
    > $title = html_entity_decode($title, ENT_COMPAT, 'utf-8');
    [snavti@shiggy bookmarks]$


    AND /units/bookmarks/bookmarks_posts_view.php

    [snavti@shiggy bookmarks]$ diff bookmarks_posts_view.php bookmarks_posts_view.php.bak
    109c109
    <       // $title_suff = html_entity_decode($title_suff, ENT_COMPAT, 'utf-8');
    ---
    >       $title_suff = html_entity_decode($title_suff, ENT_COMPAT, 'utf-8');
    [snavti@shiggy bookmarks]$

     

    user iconShiyghan Navti on Friday, 21 September 2007, 17:33 UTC # |

  5. can you tell me where is the units folder

    or where should i upload this folder

    user iconsuresh on Sunday, 10 February 2008, 15:19 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg