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

    I currently use linux ubuntu 10.04 with LAMPP, PHP Version 5.3.2, MySQL client version: 5.1.41
    The site is in evolution 1.0.3 and ajaxsearch is 1.9.0

    When i move my site from web-server to localhost i get following parse error:
    NOTE: everything else seems to work, if i delete ajaxsearch call i have no other errors. Also ajaxsearch works with out problems on my webhost!


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

    PHP error debug
    Error: Missing argument 1 for AjaxSearch::AjaxSearch(), called in /media/DATA/Websites/modxkgf/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 447 and defined
    Error type/ Nr.: Warning - 2
    File: /media/DATA/Websites/modxkgf/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php
    Line: 98
    Line 98 source: function AjaxSearch($version,$cfg,$dcfg) {

    Parser timing
    MySQL: 0.0010 s (1 Requests)
    PHP: 0.0425 s
    Total: 0.0435 s

    any suggestions to what i can do? smiley Thanks!!
      • 5811
      • 1,717 Posts
         function AjaxSearch($version,$cfg,$dcfg)
      is the constructor of the class AjaxSearch from classes/ajaxSearch.class.inc.php for AjaxSearch 1.8.5
      So I don’t know why but you mix AjaxSearch 185 and 190. You should check your installation.
        • 21778
        • 223 Posts
        Quote from: coroico at Jun 14, 2010, 11:19 AM

           function AjaxSearch($version,$cfg,$dcfg)
        is the constructor of the class AjaxSearch from classes/ajaxSearch.class.inc.php for AjaxSearch 1.8.5
        So I don’t know why but you mix AjaxSearch 185 and 190. You should check your installation.

        You are right! Thanks so much corocio. It was 185 NOT 190, dont know why i had written 190 i description :p Also i don’t know why 185 dosen’t work on my system, but it’s all good; 190 dose the job.

        Thanks again!