?
Solved

CF Install, Mapping and Errors

Posted on 2003-03-03
8
Medium Priority
?
194 Views
Last Modified: 2013-12-24
I am having some major issues with my CF installation.  I have CF installed on a Windows NT 4 platform with SP6a installed (IIS 4.0 running server).  I am using Dreamweaver on another computer to develop the site and upload to the server via FTP.

The specific problem that i am having is I have created a template that serves as the header for all of my pages.  I use the <cfinclude> to get the template into all the other pages.  When I try to preview the page, the browser jams and acts like its caught in a perpetual download loop.  The weird thing is that when I first created the site in Dreamweaver it worked for a few times and then suddenly it doesn't.

I have tried everything I know to do even reformat the NT server and start from scratch with everything.  I checked the error log and the message I got was something about Mapping.

Anyone got any suggestions or help?
0
Comment
Question by:skibama1
7 Comments
 
LVL 17

Expert Comment

by:anandkp
ID: 8056623
chk for nested includes - ie file within the file !

chk if the directory mappings r created properly in IIS/PWS

K'Rgds
Anand
0
 
LVL 9

Expert Comment

by:HamdyHassan
ID: 8057289
you need a ColdFusion Mapping.

Open ColdFusion Administrator and choose the mappings link fromt the left.

Type the name you wish to use for the mapping in the logical path box. Something like the name of the application is normally a good choice. The format is "/mappingname/"

Type the full path to the directory containing the header and footer files in to the directory path box.

Click add mapping.

You can now access the directory containing the header and footer files as follows:

<CFINCLUDE Template="/mappingname/header.cfm">


0
 
LVL 1

Expert Comment

by:jeffryan
ID: 8057378
If your pages used to load and now they don't, it seems like your problem would be a coding error.  Can you create a file with just "hello" in it and load it from the same directory your having the problems in?

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
LVL 1

Author Comment

by:skibama1
ID: 8062172
A new mapping did not solve the problem.  A new file did not solve the problem.  I even installed CF on a local machine to test as localhost.

It's really weird.  Only the image files are excluded from the preview.  It's like it gets hung.  All of the other info is complete in loading the page.  Even viewing the source results in a complete set of HTML code.
0
 
LVL 1

Author Comment

by:skibama1
ID: 8062180
Is there a trick to where the <cfinclude> tag should go and how the page is rendered?  Should I start the header page with

<HTML>
<HEAD>

etc.?  And end it with no closing tags?
0
 
LVL 1

Accepted Solution

by:
skibama1 earned 0 total points
ID: 8062246
Aha!

Because the images had a relative path in terms of the header file, the index file at the root did not see the files.

Thanks to all your help!
0
 
LVL 17

Expert Comment

by:anandkp
ID: 8062264
well

theres nothing wrong with the HTML - that u r having ... the html tags shldnt cause the problem - i guess its the CF code u have in there is what needs to be checked.

did u chk the mapping of ur dir in IIS/PWS ???

if things r fine there & the files that ur trying to include r in ur root folder- then u do not necessarily need to have CFmappings - [u can have them if u want to - but then make sure - ur using them the right way]

if u can paste a eg of ur code - we can analyse & tell u where u may be going wrong

let me know

K'Rgds
Anand
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question