Hi All,
I’m getting a weird error when trying to use ajaxsearch. I have 0.9.6.3 which has the newest version of AjaxSearch.
My search results page has:
[!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0`!]
and my chunk I include for the search form is:
[!AjaxSearch? &AS_showResults=`0` &AS_landing=`258` &showMoreResults=`0` &moreResultsPage=`258` &ajaxSearch=`0` !]
The page id is definitely right. Here’s the error I get when I search for something:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user ’pdiabetickids’@’localhost’ (using password: NO)
Error type/ Nr.: Warning - 2
File: /var/www/vhosts/parentingdiabetickids.com/httpdocs/assets/snippets/ajaxSearch/classes/search.class.inc.php
Line: 140
Line 140 source: $searchString = mysql_real_escape_string($this->searchString);
Parser timing
MySQL: 0.0062 s (5 Requests)
PHP: 0.2568 s
Total: 0.2629 s
Any thoughts? I’m stumped!