PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Problem after 1st search with ColdFusion wrapper code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem after 1st search with ColdFusion wrapper code

    I have my search set up as:

    /site
    site/search/search.cgi

    I call the search.cgi from a file in the root directory, and the search screen comes up fine. I can type in my search word, and press search, and I get a 404 error.

    What's going on?

  • #2
    Maybe you have defined your own search form, and the form action points to a non existent page. If you can post the URL to your search function we can look at the problem in more detail.

    Comment


    • #3
      Originally posted by wrensoft View Post
      Maybe you have defined your own search form, and the form action points to a non existent page. If you can post the URL to your search function we can look at the problem in more detail.
      Ok, on my search.cfm page, I have:
      cfhttp url="http://www.salleboise.com/search/search.cgi#cgi.QUERY_STRING#"

      Comment


      • #4
        The search function on your site seems to work fine. For example,
        http://www.salleboise.com/search/search.cgi?zoom_query=Fencing

        The problem would seem to be in your ColdFusion search.cfm script.

        We don't know much about ColdFusion, didn't write in the code in search.cfm script, can't see your source code (except for the 1 line you posted here) and don't have a ColdFusion server to test on.

        So we aren't in a great position to debug your code.

        Comment


        • #5
          Originally posted by wrensoft View Post
          The search function on your site seems to work fine. For example,
          http://www.salleboise.com/search/sea..._query=Fencing

          The problem would seem to be in your ColdFusion search.cfm script.

          We don't know much about ColdFusion, didn't write in the code in search.cfm script, can't see your source code (except for the 1 line you posted here) and don't have a ColdFusion server to test on.

          So we aren't in a great position to debug your code.
          What can I do to make it easier???

          Comment


          • #6
            Did you specify a LinkBack URL in Zoom? I think this might have been specified incorrectly.

            On your CFM search page here:
            http://www.salleboise.com/search.cfm

            Looking at the HTML output of that page:
            Code:
            <form method="get" action="[B]../../search.cfm[/B]" class="zoom_searchform">
            Search for: <input type="text" name="zoom_query" size="20" value="" class="zoom_searchbox" />
            <input type="submit" value="Submit" class="zoom_button" />
            <span class="zoom_results_per_page">Results per page:
            <select name='zoom_per_page'><option selected="selected">10</option><option>20</option><option>50</option><option>100</option></select><br /><br /></span>
            <span class="zoom_match">Match: 
            <input type="radio" name="zoom_and" value="0" checked="checked" />any search words
            <input type="radio" name="zoom_and" value="1" />all search words
            <input type="hidden" name="zoom_sort" value="0" />
            <br /><br /></span>
            </form>
            It appears that you may have set the link back URL as "../../search.cfm". This doesn't make much sense considering the current location of the search page (which is already the web site's root directory). Just "search.cfm" should work better - try that first. If you continue to have problems, it might be because of the way you have your CFM page in a different directory from your CGI. It would be simpler if you just have them in the same directory.
            --Ray
            Wrensoft Web Software
            Sydney, Australia
            Zoom Search Engine

            Comment


            • #7
              Originally posted by Ray View Post
              Did you specify a LinkBack URL in Zoom? I think this might have been specified incorrectly.

              It appears that you may have set the link back URL as "../../search.cfm". This doesn't make much sense considering the current location of the search page (which is already the web site's root directory). Just "search.cfm" should work better - try that first. If you continue to have problems, it might be because of the way you have your CFM page in a different directory from your CGI. It would be simpler if you just have them in the same directory.
              Yes, I did specify a LinkBack, and I tried it several different ways. I have switched it back to just search.cfm, and the problem still occurs.

              I did have the search.cgi and all other related files in the root directory along with the search.cfm, and the same error was occuring.

              Any other ideas?? Or thoughts?

              Comment


              • #8
                It seems to be working fine now that you've changed it back, at least, as far as I can see here:
                http://www.salleboise.com/search.cfm
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment

                Working...
                X