Hi all,
I just upgraded our development site to MODx 1.0.4 with AjaxSearch 1.9.0.
How can I prevent AjaxSearch to fail on a pages with a second DB connection? On those pages we’re receiving the following error.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'nobody'@'localhost' (using password: NO)
Error type/ Nr.: Warning - 2
File: /is/htdocs/wpXXXXX/www/development/assets/snippets/ajaxSearch/classes/ajaxSearchUtil.class.inc.php
Line: 41
Line 41 source: $header = "AjaxSearch " . $version . " - Php" . phpversion() . " - MySql " . mysql_get_server_info();
Parser timing
MySQL: 0,0075 s (60 Requests)
PHP: 0,5546 s
Total: 0,5622 s
In the default template we’re using:
[!AjaxSearch? &ajaxSearch=`0` &landingPage=`5` &language=`german`!]
and the landing Page:
[!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0` &extract=`1` &order=`pagetitle DESC` &rank=`` &parents=`11,21,25,29,33` &depth=`2` &language=`german`!]
With MODx 1.0.0 and AjaxSearch 1.8.5 it worked like charm.