Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do I keep getting this error?

Status
Not open for further replies.

Jerkycold

IS-IT--Management
Jun 17, 2003
26
US
no matter what page I try to browse I keep getting this error everytime. There are no cfincludes in this page or any of the others. Here is the code followed by the error:


<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<!---



<html>
<head>
<title>Map</title>
</head>
<script language=&quot;javascript&quot;>
function form_submit(do_action)
{
this.document.the_form.do_action.value=do_action;
this.document.the_form.submit();
}
</SCRIPT>

<style type=&quot;text/css&quot;>
<!--
a { font-family:Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; color: #77F0B6; text-decoration: none}
a:active { font-family:Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; color: #FF0000; text-decoration: none}
a:link { font-family:Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; color: #77F0B6; text-decoration: none}
a:visited { font-family:Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; color: #77F0B6; text-decoration: none}
a:hover { font-family:Arial, Helvetica, sans-serif; font-size: 12pt; font-style: normal; color: #FF0000; text-decoration: underline}
-->
</style>
<center>
<table>
<tr>
<td align=&quot;center&quot;>
<font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;5&quot; color=&quot;666666&quot;>
Welcome to BassTech's <b><i>BTMapBlaster</i></b> Demo<br><br>
</font>
</td>
</tr>
</table>
</center>

<body background=&quot;../images/main_bkg.gif&quot;>
<cfset DontShow=&quot;F&quot;>

<!--- <cfset DefStreetAddr = &quot;2104 Hallock Street&quot;>
<cfset DefCityState = &quot;11710&quot;> --->

<cfset DefStreetAddr = &quot;&quot;>
<cfset DefCityState = &quot;26123&quot;>

<cfif isDefined(&quot;URL.MapType&quot;)>
<cfset sMapType = &quot;#URL.MapType#&quot;>
<cfelse>
<cfif Not isDefined(&quot;FORM.MapType&quot;)>
<cfset sMapType = &quot;MAP&quot;>
<cfelse>
<cfset sMapType = &quot;#FORM.MapType#&quot;>
</cfif>
</cfif>

<cfif isdefined(&quot;FORM.do_action&quot;) and FORM.do_action eq &quot;Submit&quot;>

<cfswitch expression=&quot;#sMapType#&quot;>
<cfcase value=&quot;MAP&quot;>
<CF_BTMapBlaster
MapType=&quot;#FORM.MapType#&quot;
location_from=&quot;#FORM.AD2_street_1#&quot;
zippostal_from=&quot;#FORM.AD3_1#&quot;
country_from=&quot;#FORM.AD4_1#&quot;
ZoomFactor=#FORM.ZoomFactor#>
</cfcase>
<cfdefaultcase>
<CF_BTMapBlaster
MapType=&quot;#FORM.MapType#&quot;
location_from=&quot;#FORM.AD2_street_1#&quot;
zippostal_from=&quot;#FORM.AD3_1#&quot;
country_from=&quot;#FORM.AD4_1#&quot;
location_to=&quot;#FORM.AD2_street_2#&quot;
zippostal_to=&quot;#FORM.AD3_2#&quot;
country_to=&quot;#FORM.AD4_2#&quot;>
</cfdefaultcase>
</cfswitch>
<cfset DontShow=&quot;T&quot;>

<cfoutput>
<cfswitch expression=&quot;#FORM.MapType#&quot;>
<cfcase value=&quot;MAP&quot;>
Variables returned:<br>
<b>MapImageURL</b><br><br>
<div align=&quot;center&quot;>
#mapimageURL#
</div>
</cfcase>
<cfcase value=&quot;STANDARD&quot;>
Variables returned:<br>
<b>MapURL</b><br>
<b>TotalDrivingTimeString</b><br>
<b>Directions</b><br><br>
<div align=&quot;center&quot;>
<h1>Driving Directions Results</h1><br><br>
#Maps#<br><br>
Approximate Travel Time: <b>#TotalDrivingTimeString#</b><br><br>
#Directions#
</div>
</cfcase>

</cfswitch>
</cfoutput>
<br><br>
<center>
Click <a href=&quot;map.cfm?MapType=<cfoutput>#FORM.MapType#</cfoutput>&quot;>here</a> to generate a new Map!
</center>
</cfif>
<form action=&quot;map.cfm&quot; name=&quot;the_form&quot; method=&quot;post&quot;>
<input type=&quot;hidden&quot; name=&quot;do_action&quot; value=&quot;Continue&quot;>
<center>
<table border=&quot;1&quot;>
<cfif DontShow eq &quot;F&quot;>
<tr>
<td valign=&quot;top&quot; align=&quot;center&quot;>
Map <cfif sMapType eq &quot;STANDARD&quot;><b>Driving Direction</b><cfelse><b>Map</b></cfif> Attributes<br>
<table>
<tr>
<td>
Map Type:<br>
<select name=&quot;MapType&quot; onChange=&quot;javascript:eek:nClick=form_submit('search');&quot;>
<option value=&quot;MAP&quot; <cfif sMapType eq &quot;MAP&quot;>SELECTED</cfif>> Map
<option value=&quot;STANDARD&quot; <cfif sMapType eq &quot;STANDARD&quot;>SELECTED</cfif>> Driving Directions
</select>
</td>
<cfif sMapType eq &quot;MAP&quot;>
<td>
Zoom Factor:<br>
<select name=&quot;ZoomFactor&quot;>
<option value=&quot;1&quot;> 1000 Miles
<option value=&quot;2&quot;> 300 Miles
<option value=&quot;3&quot;> 100 Miles
<option value=&quot;4&quot;> 40 Miles
<option value=&quot;5&quot;> 10 Miles
<option value=&quot;6&quot;> 4 Miles
<option value=&quot;7&quot; SELECTED> 1 Mile
<option value=&quot;8&quot;> 1800 feet
<option value=&quot;9&quot;> 900 feet
<option value=&quot;10&quot;> 300 feet
</select>
</td>
<cfelse>
<td>&nbsp;</td>
</cfif>
</tr>
<cfif sMapType eq &quot;MAP&quot;>
<tr><td colspan=2>&nbsp;</td></tr>

<tr><td colspan=2><b>Location From:</b></td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD2_street_1&quot; value=&quot;<cfoutput>#DefStreetAddr#</cfoutput>&quot; size=25 maxlength=40></td><td>- Street</td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD3_1&quot; size=25 value=&quot;<cfoutput>#DefCityState#</cfoutput>&quot; maxlength=40></td><td>- City, State [or Zip]</td></tr>
<tr>
<td>

<select name=&quot;AD4_1&quot;>
<option value=&quot;fr&quot;>France
<option value=&quot;uk&quot;>United Kingdom
<option value=&quot;de&quot; SELECTED>Germany
<option value=&quot;it&quot;>Italy
<option value=&quot;es&quot;>Spain
<option value=&quot;us&quot; >US
<option value=&quot;ca&quot;>Canada
</select>
<!--- <select name=&quot;AD4_1&quot;>
<option value=&quot;us&quot;> United States
<option value=&quot;ca&quot;> Canada
</select> --->
</td>
<td>- Country</td>
</tr>
<cfelse>
<tr><td colspan=2>&nbsp;</td></tr>

<tr><td colspan=2><b>Location From:</b></td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD2_street_1&quot; value=&quot;14214 Plum Run Way&quot; size=25 maxlength=40></td><td>- Street</td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD3_1&quot; size=25 value=&quot;20906&quot; maxlength=40></td><td>- City, State [or Zip]</td></tr>
<tr>
<td>
<select name=&quot;AD4_1&quot;>
<option value=&quot;us&quot; SELECTED> United States
<option value=&quot;ca&quot;> Canada
</select>
</td>
<td>- Country</td>
</tr>
<tr><td colspan=2>&nbsp;</td></tr><br>
<tr><td colspan=2><b>Location To:</b></td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD2_street_2&quot; value=&quot;8075 Leesburg Pike&quot; size=25 maxlength=40></td><td>- Street</td></tr>
<tr><td><input type=&quot;text&quot; name=&quot;AD3_2&quot; size=25 value=&quot;22182&quot; maxlength=40></td><td>- City, State [or Zip]</td></tr>
<tr>
<td>
<select name=&quot;AD4_2&quot;>
<option value=&quot;us&quot; SELECTED> United States
<option value=&quot;ca&quot;> Canada
</select>
</td>
<td>- Country</td>
</tr>
</cfif>
<tr>
<td colspan=&quot;2&quot; align=center>
<br><br>
<input type=&quot;button&quot; onclick=&quot;javascript:eek:nClick=form_submit('Submit');&quot; value=&quot;Generate&quot;>
</td>
</tr>
</table>
</td>
</tr>
</cfif>
</table>
<br><br>
<table width=&quot;100%&quot;>
<tr>
<td align=&quot;center&quot;>
<br>
<hr>
</td>
</tr>
<tr>
<td colspan=&quot;2&quot; align=&quot;center&quot;>

<font face=&quot;Arial,Helvetica,sans-serif&quot; size=&quot;2&quot; color=&quot;666666&quot;>
This page has been accessed <CF_Counter Start=&quot;1&quot;> times since 6/4/2001.
</font>
</td>
</tr>
</table>

</center>
</form>

</body>
</html>


and the error:


Error Diagnostic Information
Template file not found.



HTTP/1.0 404 Object Not Found
Note: If you wish to use an absolute template path (e.g. TEMPLATE=&quot;/mypath/index.cfm&quot;) with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator.

Using relative paths (e.g. TEMPLATE=&quot;index.cfm&quot; or TEMPLATE=&quot;../index.cfm&quot;) does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.


The error occurred while processing an element with a general identifier of (CFINCLUDE), occupying document position (4:1) to (4:56).


Date/Time: 07/11/03 13:02:11
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 192.168.254.48
Template: C:\Inetpub\
 
Do any custom tags have any CFINCLUDE(s) ?

Like this custom tag.
<CF_BTMapBlaster ...

>


Aaron
 
Have you checked your application.cfm page? If you're getting this error on every page, then that's probably where the problem is.

 
I thought that might be it. I do not have one. I am fairly new to cold fusion, what do I need to do to make one and where do i need to put it??
 
Check in the folder 1 directory up (possibly 2) from your current folder and see if there is an application.cfm file there.

Application.cfm is created just like any other .cfm page, and stored in the directory with your .cfm pages. It's basically just a page that holds settings and values that will be used across your entire site. CF Server automatically looks for application.cfm in the current directory before it processes any pages. If it is not found, CF Server will look &quot;up&quot; one directory for it.

 
Jerkycold

FYI. People are not here to offer you free tech support. If you solve the problem yourself please be courteous and actually provide details about what fixed it rather than a simple &quot;nevermind I figured it out&quot;

Also, it is common courtesy to thank people for helping you. It is sheer bad manners to not even acknowledge the posts that were made here. A simple &quot;Thanks for trying&quot; goes a long way.



Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
About the application.cfm page. I was having a similiar problem with errors in a dir of a site that had no application.cfm. I traced it up the tree 4 or 5 levels until I got to the c:\. There was an old application.cfm file and that is what it was looking at.
Point is.... CF will look up the tree as far as it can.



The only dumb questions are the ones that are never asked
 
Sorry, this is my first time using these forums. Thanks for the help. I was able to find my application.cfm and I modified it and it worked. thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top