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,
    could someone help me with this problem. In my template I made a simple [!AjaxSerach!] call.
    When getting a search results I get this information: AjaxSearch: database_connection_charset is null. Check your config file.
    Could somebody help me with this?
    lx
      Lucas from AroundCyprus.net
      • 17723
      • 221 Posts
      ... I’ve solved this problem myself.
      I’ve added my language in /manager/includes/config.inc.php . That was polish in "$database_connection_charset = ’polish’;".
      Than in ajaxSearch.php I’ve added a ’polish’ => ’UTF-8’ to $pageCharset = array

      Hopfully it will help someone in future.

      lx
        Lucas from AroundCyprus.net
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        http://wiki.modxcms.com/index.php/AjaxSearch

        There is an explanation of the error messages here.
          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
          I’m getting this same error in version 1.8:

          "Add the appropriate Html charset mapping in the ajaxSearch.php file"

          The problem is - there’s no ajaxSearch.php file to change in the new version huh or have I missed something?

          Anyone have any ideas?
            • 2776
            • 10 Posts
            Quote from: Howard at Aug 05, 2008, 10:48 AM

            I’m getting this same error in version 1.8: "Add the appropriate Html charset mapping in the ajaxSearch.php file"

            The problem is - there’s no ajaxSearch.php file to change in the new version ?
            ajaxSearch.php in new 1.8 version was renamed in ajaxSearchPopup.php. Just download previous version and look for right position for $pageCharset array:
            $pageCharset = array(
            'utf8' => 'UTF-8');