Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
Jul 03, 2009 Jul 03, 2009

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]

TOPICS
Getting started
4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 06, 2009 Jul 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 06, 2009 Jul 06, 2009

@ JR "Bob" Dobbs

It processes the data inside the .cfm file - it just won't change once I edit the code around for [now 3] different .cfm files.

Though - I am checking that documentation... I'm pretty new with these things - so it's taking me a little while.

Thanks for the suggestion, I'll let you know what I find out

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 06, 2009 Jul 06, 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 con...

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


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 06, 2009 Jul 06, 2009

Please post the URLs you are browsing to for the CF admin and the problem .cfm.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 06, 2009 Jul 06, 2009

Here is the .cfm file -

I'm accessing it @

localhost/cf8essentials/HelloWorld.cfm

If you meant the URLs from the text I posted @ bolded in my previous post, it is from the link you gave me

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

I've attached a screenshot of what is returned

The URL for the admin is a vhost server name that I setup through XAMPP

'/Users/watts/Sites/CFIDE/administrator/index.cfm' is the actual location - but I point to it by typing in 'coldadmin' into my browser.

[which, I have no issues logging in].

************ EDIT:: apparently i'm not able to upload .cfm files directly, so here is the actual code::

************ If you would like, I could always email it to you.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>My First ColdFusion page</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body>

<h1>My First ColdFusion .  I AM EXCITED Page</h1>

<cfset firstname="BOB">
   
<cfset lastname="JAMES">

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

<cfoutput>My Last NAME is #lastname# !! </cfoutput>



</body>
</html>

**********************

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jul 06, 2009 Jul 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 07, 2009 Jul 07, 2009

@ JR "Bob" Dobbs

'Trusted Cache' is unchecked, as is 'Save Class Files'.

I have also cleared the Template Cache.

Still no luck.

I have restarted ColdFusion, apache and mysql, cleared all browser cache.... nothing.

I copied//pasted the HelloWorld.cfm data into a new file, naming it HelloWorld4.cfm.

The file works, and if I change it - it records the changes...

I suppose my concern is that if I start working on a project... and what happened to the original HelloWorld file happens to one or more of the project files... it could end up being a quite an issue.

Thank you again for your help and suggestions - I really do appreciate it.

*******************************

*********UPDATE************

*******************************

SO.  I took the file 'HelloWorld.cfm' and deleted its contents and saved it [it is now an empty .cfm file].

going to ' localhost/cf8essentials/HelloWorld.cfm ' still displays the same.

I took that file - copied it, and pasted it into a seperate folder, and accessed it through the address bar.  File works [blank + if I add the code, it runs].

So, I took all the files out of that folder.  The folder 'cf8essentials' is now empty.  HOWEVER, if I point to the HelloWorld.cfm file [or a couple other files that had the same issue] - They all come up in the browser, whereas pointing to the files that I created such as HelloWorld4.cfm returns an error from ColdFusion8: 'error occured while processing request'.

So, I tried clearing the cache of the browser again, tried a second browser [after clearing its cache as well], restarted apache/mysql, coldfusion, the whole deal.

localhost/cf8essentials/HelloWorld.cfm still points to that file [even though it doesn't even exist in that folder anymore].

heh... in which case - I have no clue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 07, 2009 Jul 07, 2009

Thanks ALL for your help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 07, 2009 Jul 07, 2009
LATEST

*****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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 06, 2009 Jul 06, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 06, 2009 Jul 06, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources