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

    Just installed the latest version of MODX and have a slight problem with ajax search.

    Im using the following call for reference:
    [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &grabMax=`15` &extract=`0`&order=`pagetitle`!]


    Now the search is working as expected however when I look at the source code of the output page it is adding a extra > at the body tag so I now have <body>> and the > is showing on the page.

    There’s only one template on the site so I know it’s not a template issue and must be something ajaxsearch is outputting.

    I’ve been looking through the files but can’t seem to see where this is being added, can anyone advise how this could be happening ??

    Site is brand new and all code the same as the default install apart from the template ( been checked )

    Cheers
      • 22840
      • 1,572 Posts
      Sorry, this isn’t hapening on the search results page, it happening on the page when I click one of the results with the following at the end of the url :
      ?searched=offers&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Do you have the highlight search terms plugin enabled? Try disabling that and seeing what happens.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 22840
          • 1,572 Posts
          Quote from: sottwell at Aug 29, 2009, 09:33 AM

          Do you have the highlight search terms plugin enabled? Try disabling that and seeing what happens.

          Thanks for the fast reply Susan,

          All is good now the highlight search terms plugin is disabled.

          Cheers
            • 26931
            • 2,314 Posts
              • 22840
              • 1,572 Posts
              Thanks Sharkbait,

              Tried that but it didn’t work, can’t understand how I missed it when searching rolleyes

              I’m not planning on using the search highlight though so Susan’s fix is fine for now grin

              Thanks both