We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6681
    • 14 Posts
    Hi guys,

    Having a strange problem on a clients web site, when ever i click on a link generated by ajax search I get the following problem.

    1. the site itself throws up an unable to parse error.

    2. the manager loses its connection with the site and the browser freezes.

    Ajax search works fine on my own site so not sure where its going wrong.

    Anybody heard of this happening before?

    Thanks,

    DPM
      • 5811
      • 1,717 Posts
      Having a strange problem on a clients web site, when ever i click on a link generated by ajax search I get the following problem.

      1. the site itself throws up an unable to parse error
      Did you get an error message ? Which one ?
        • 6681
        • 14 Posts
        Ok, here’s the error that i get,
        This just repeats and repeats over and over again.
        Eventually a page will in fact load but thats after a few minutes of this error displaying thousands of times.

        This tends to happen when i click on a link generated by AjaxSearch.

        Any Ideas?
        -----------------------------------------------------------------------------------

        « MODx Parse Error »

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

        PHP error debug
        Error: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query
        Error type/ Nr.: Warning - 2
        File: /mywebsite/web/manager/includes/extenders/dbapi.mysql.class.inc.php
        Line: 89
        Line 89 source: if (!$this->conn = ($persist ? mysql_pconnect($host, $uid, $pwd) : mysql_connect($host, $uid, $pwd, true))) {

        Parser timing
        MySQL: 0.0000 s (0 Requests)
        PHP: 0.0202 s
        Total: 0.0202 s
        « MODx Parse Error »

        MODx encountered the following error while attempting to parse the requested resource:
        « Failed to create the database connection! »

        Parser timing
        MySQL: 0.0000 s (0 Requests)
        PHP: 0.0208 s
        Total: 0.0208 s
        « MODx Parse Error »

        -----------------------------------------------------------------------
          • 5811
          • 1,717 Posts
          when ever i click on a link generated by ajax search I get the following problem
          Which link is it ? The pagination link, the title of the search result, huh

          This is a very weird issue. This occurs only with this link ?

          Which are your PHP version, MODx version and AjaxSearch version ?