Skip to main content
July 4, 2009
Question

Problem with my .cfm files in Browsers [not refreshing]

  • July 4, 2009
  • 2 replies
  • 4932 views

Hello,

I'm taking the steps to learn about CF, and I am watching some tutorials to do so.


Unfortunately my files seem to not be working.

I have 2 files: HelloWorld.cfm and HelloWorld2.cfm that are not working correctly in the browser.

They both show the initial data that had been entered:


<body>

<h1>My First ColdFusion Page</h1>

<cfset firstname="David">

<cfoutput>My name is #firstname# !! </cfoutput>

</body>

But no matter what I do to change the data in the .cfm file - it will display as the original 'My name is David !!'

if i change the value of 'firstname' - it wont matter.

I've tried refreshing the browser, opening the files up in multiple text editors and making edits, and even opened the files up in a fresh browser [I hadnt used safari yet].

Nothing works.

If I create a new .cfm file - everything works fine...

Any ideas?

[localhost setup with XAMPP, Coldfusion 8 Installed, and originally using Eclipse w/ CFEclipse, also tried Textmate]

This topic has been closed for replies.

2 replies

July 6, 2009

It actually sounds more like it might be that your browser is reading from it's cache rather than actually what the Server sends.  Trying deleting your cache and cookies and then restart the browser and try again.  I have sat for 20 minutes before trying to figure out why something wasn't working when it ended up being the cache.

July 6, 2009

@ xhearttonfiree43x

I thought it might be that too [ I've had the same thing happen before] - but I cleared the cache of both browsers, and they still serve up the same data from the .cfm file.

Its as if the data was processed once - and will keep spitting out the same result regardless of whether the code is changed.

Thanks for the suggestion tho, I've totally been there - more than once

Inspiring
July 6, 2009

It sounds like your Apache server has not been configured to serve CF pages.  See the CF docs for help changing your configuration.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=configuring_08.html#1171424

July 6, 2009

@ JR "Bob" Dobbs

Looking at that documentation - I am completely lost.

Like I said, I'm pretty new at these things.

Looked on google, etc - was unable to figure out what this means::

Enter the following command on a single line:


The wsconfig file is in cf_root/runtime/bin (server configuration) or jrun_root/bin (multiserver configuration)

The following is a sample command:


As far as I know - part 2 of the Configuring Apache web server in Unix has been done correctly.

If Apache weren't setup to work with .cfm files - would that prevent me from being able to log into the Coldfusion8 Administrator? [CFIDE/administratoro/index.cfm] --- I have no issues logging in.

Thanks again


July 7, 2009

Log into the CF admin site and check the caching settings.  Verify that "Trusted cache" is unchecked.  I would also uncheck "Save class files" and press the "Clear Template Cache Now" button.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basiconfig_07.html#1358530

Message was edited by: JR "Bob" Dobbs


*****SOLUTION*****

I THINK this is what happened::

SO, browsing around my files directories - looking for some other type of solution, I found that inside my 'wwwroot' folder existed another folder called 'cf8essentials'.  Inside that folder was - you guessed it - the three problem .cfm files.

I have XAMPP installed, and have set through XAMPP my localhost to be my 'Sites' folder.

So, technically - I had two directories declared as 'localhost' on my machine.

After installing Eclipse and CFEclipse - I had to input what my basis folder was going to be for the project I was working on.

That folder was: 'localhost/cf8essentials'.

So when I created my .cfm files in Eclipse - they were created into 2 different directories.  the cf8essentials folders in 'wwwroot' and 'Sites'.

@ least - that is what I think happened.  I myself did not make duplicates of those files and place them into 2 different directories.

Sorry for all of the trouble, and thanks very much for your assistance and effort in helping me.

I really do appreciate it.