We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    for some reason everytime I’m trying to search using FlexSearchForm the page just refresh itself when I click GO.
    I don’t get the message "no results found" or anything like that.

    I call the snippet with [[FlexSearchForm]] where 67 is my "Search" page id.
    any ideas why is that?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If your document is cached, you need to call the snippet uncached [!...!]
        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
        • 27330
        • 884 Posts
        Quote from: sottwell at Nov 04, 2006, 11:41 PM

        If your document is cached, you need to call the snippet uncached [!...!]

        if I try to call the snippet [[!FlexSearchForm!]] the search box is not appearing on the search page.

        if I’m calling it [[FlexSearchForm]] I see the box but after I click on GO it’s just return to the search box again.

        unchecking the box []cacheable in my Search page setting results in parse error without page at all.
        I tried setting another page for results with [[FlexSearchForm?FSF_landing=60]] but that gives me parse error as well.

        I know it must be a user error but what am I doing wrong? huh
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          That’s one bracket, then an exclamation point: [! ... !], not [[! ... !]]

          [!FlexSearchForm!]
            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
            • 27330
            • 884 Posts
            that gives me now when clicking GO:

            « MODx Parse Error »
            MODx encountered the following error while attempting to parse the requested resource:
            « PHP Parse Error »
             
            PHP error debug
              Error: 	Invalid argument supplied for foreach()	 
              Error type/ Nr.: 	Warning - 2	 
              File: 	/path/manager/includes/document.parser.class.inc.php(705) : eval()'d code	 
              Line: 	690	 
             
            Parser timing
              MySQL: 	0.0476 s s	(2 Requests)
              PHP: 	0.0678 s s	 
              Total: 	0.1155 s s


            undecided
              • 27330
              • 884 Posts
              thx Susan for the reply.

              any other ideas maybe?