Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

There was a problem executing the CFSearch tag...

Jun 11, 2007 12:21AM PDT

There was a problem executing the CFSearch tag with the following collections.
Collection (status code): com_constitutionproject (-1705)

The error occurred in D:\constitutionproject.org\httpdocs\collection_search_action.cfm: line 2

1 : <cfsilent>
2 : <cfsearch criteria="#form.criteria#" collection="com_constitutionproject" name="codecoll_results">
3 : </cfsilent>
4 : <cfsilent>

~~~~~~~~
After modifying the code for our website search, i got this error. I reposted the old code, but still got the error. I contacted our hosting company and had them restart the cold fusion server, and still get the error. Any ideas as to how to fix? the following is the code for the page. It should work! Also, the site is running, Windows 2003 Small Bus w/Cold Fusion..

<cfsilent>
<cfsearch criteria="#form.criteria#" collection="com_constitutionproject" name="codecoll_results">
</cfsilent>
<cfsilent>
<cfparam name="session.admin_loggedin" default="false">
<cfparam name="categoryID" default="">
</cfsilent>
<cfoutput> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Constitution Project</title>
<meta name="description" content="The Constitution Project is a bipartisan nonprofit organization that seeks consensus on controversial legal and constitutional issues through scholarship and activism. Our initiatives are war powers, courts, death penalty, liberty and security, constitutional amendments, and sentencing.">
<meta name="keywords" content="Constitution Project, The Constitution Project, Georgetown University, bipartisan, nonprofit, scholarship, activism, initiatives, war powers, courts, death penalty, liberty and security, constitutional amendments, and sentencing">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/sitesheets.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
//-->
</script>
<script language="JavaScript" src="/mm_menu.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<cfinclude template="/ssi/homeheader.cfm">
<td width="100%" class="intcontent">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="contentCell" width="100%">
<!--- content--->
<p class="pageheader">Search Results</p>
Your search returned #codecoll_results.RecordCount# file(s) for #form.criteria#.
<!--- results --->
<cfloop query="codecoll_results">
<p>
<cfif title eq "article">
<a href="#URL#/article.cfm?messageID=#key#">#custom1#</a><br>
Score: #score#<br>
Summary: #replace("#Summary#","#chr(10)#","<BR>","ALL")#</p>
<cfelse >
File: <a href="#URL#">#URL#</a><br>
Score: #Score#<br>
Summary: #replace("#Summary#","#chr(10)#","<BR>","ALL")#</p>
</cfif>
</cfloop>

</td>
</tr>
</table>
</td><td bgcolor="##C0B6A0" width="1"><img src="/images/spacer.gif" width="1" height="8"></td></tr></table></td>
</tr>
</table></td>
</tr>
<cfinclude template="/footer_noline.cfm">
</body>
</html></cfoutput>

Discussion is locked

- Collapse -
Maybe you should post
Jun 11, 2007 1:48AM PDT

the page in question here

http://validator.w3.org/

It will give you the error codes and sometimes it will give you a suggestion on how to correct these problems.


Rick

- Collapse -
Maybe you should post
Jun 11, 2007 6:16AM PDT

I went to the site and i got the following error:

500 Internal Server Error
If you made recent changes to your domain name (DNS) configuration, you may also want to check that your domain records are correct, or ask your hosting company to do so.

i clicked the link "domain records are correct" http://www.squish.net/dnscheck/, and tested the search page, http://www.constitutionproject.org/collection_search_action.cfm, i chose any for dns record type.

and i got this error, Error: No such domain.

what do i do now?

- Collapse -
I downloaded the html kit
Jun 11, 2007 6:46AM PDT
- Collapse -
HTML Kit doesn't support .cfm files (cold fusion files)
Jun 11, 2007 8:02AM PDT

there shouldn't be errors in the code because it worked only days ago. i changed one thing, and the search page worked. a couple minutes later, i tried again and it didn't (which is why i thought i needed a server reset).

cfm is not included in the file types below in the description for html-kit:
HTML-Kit is a full-featured editor and an integrated development environment designed to help HTML, XHTML, XML and script authors to edit, format, lookup help, validate, preview and publish web pages. Newcomers to web page development can benefit from letting it point out errors and provide suggestions on how to create standards compliant pages. Experts can save time spent on common tasks using the highly customizable and extensible editor while maintaining full control over multiple file types including HTML, XHTML, XML, CSS, XSL, JavaScript, VBScript, ASP, PHP, JSP, Perl, Python, Ruby, Java, VB, C/C++, C#, Delphi / Pascal, Lisp, and SQL.