We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17723
    • 221 Posts
    Hello,
    I’ve changed in modox configuration character encoding to iso-8859-2 and since that I have problems with viewing gallery on my site. When I go to the gallery I get information:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: htmlentities() [function.htmlentities]: charset `iso-8859-2’ not supported, assuming iso-8859-1
    Error type/ Nr.: Warning - 2
    File: /users/0005/luxw/www/luxw.website.pl/assets/snippets/ditto/classes/phx.parser.class.inc.php
    Line: 243
    Line 243 source: case "htmlent": $output = htmlentities($output,ENT_QUOTES,$modx->config[’etomite_charset’]); break;


    Could You kindly help me in solving this problem?
    lx
      Lucas from AroundCyprus.net
      • 7923
      • 4,213 Posts
      htmlentities php function does not support iso-8859-2 charset, so replace all instances of $modx->config[’etomite_charset’] in maxigallery code to something that is supported, see the php manual page for supported charsets. I’ll make that configurable in next version.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 8548
        • 104 Posts
        I had the same probleme but probably that MaxiGallery uses ditto file for this...

        in ditto phx.parser.class.inc.php on line 243
        I had this line :
        case "htmlent": $output = htmlentities($output,ENT_QUOTES,$modx->config['etomite_charset']); break;

        I replaced it with :
        case "htmlent": $output = htmlentities($output, ENT_QUOTES); break;


        everything is good now.

        Hope i help some ppl with this.