We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12402
    • 7 Posts
    I know this is a problem that has been raised with previous incarnations of AjaxSearch, and is easily fixed, however I’m having the same problem within the latest version and can’t work out how to fix it - largely due to the major changes in file structure etc.

    AjaxSearch: unknown database_connection_charset = english
    Add the appropriate Html charset mapping in the ajaxSearch.php file


    There isn’t a file called ajaxSearch.php in the latest version! Unless I’ve messed up with the install...

    I’d go back to a previous version of the snippet, but really need the TV search functionality (I’m building a ’search tags’ facility into the site).
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I think that’s a typo... it should be the ajaxSearchPopup.class.php file. The mappings are on line 45.

      The source at line 203 has this comment
            // if you get this message, simply update the $pageCharset array above with the appropriate mapping between Mysql Charset and Html charset
            // eg: 'latin2' => 'ISO-8859-2' and send me a email to update the source code
      


      This is a comparison and mapping of the setting in your config.inc.php file. Allowable settings can be found here:
      http://dev.mysql.com/doc/refman/5.0/en/charset-charsets.html

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 12402
        • 7 Posts
        Excellent smiley Thanks for the swift reply!
          • 27305
          • 173 Posts
          I am also getting the same problem but there is no file ajaxSearchPopup.class.php file.
            I made my first site with modx
            ------------------------
            Shopping blog
            Sky+ HD