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

    I’m having a dumb problem with Ajax Search. I upgraded my site to modx 1.0.5 and i didn’t update the ajaxsearch because it had given me problems on other sites before. However when i went to preview the site, I get 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: Missing argument 1 for run()
    Error type/ Nr.: Warning - 2
    File: /nfs/c03/h03/mnt/54198/domains/bayerparasitesolutions.ca/html/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php
    Line: 64
    Line 64 source: function run($tstart, $dcfg, $cfg = null) {

    Parser timing
    MySQL: 0.0292 s (7 Requests)
    PHP: 0.0649 s
    Total: 0.0941 s


    I’m not sure what to do. I tried looking at other postings and found a few however since I am new to modx, I really couldn’t understand what they were talking about.

    Could someone please help me?

    BTW this is really urgent

    Thanks
      • 5811
      • 1,717 Posts

      I upgraded my site to modx 1.0.5 and i didn't update the ajaxsearch

      PHP error debug
        Error:    Missing argument 1 for run()   
        Error type/ Nr.:    Warning - 2   
        File:    /nfs/c03/h03/mnt/54198/domains/bayerparasitesolutions.ca/html/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php   
        Line:    64   
        Line 64 source:    function run($tstart, $dcfg, $cfg = null) { 
      I don’t know why but it seems you run an older version of the ajaxSearch snippet with the classes of the last release of AjaxSearch (1.9.2). May be this is due to your installation.
        • 35843
        • 34 Posts
        I figured it out but what happened was, although i chose not to install the latest versions of the ajaxsearch, it still installed it. So i then just reverted everything back to the older version and it worked.