Copy link to clipboard
Copied
I am currently learning ColdFusion using the tutorials on lynda.com. In doing the exercises I am running into a particularly unusual problem. No matter what .cfm document I have opened and I am attempting to work on the only page that will preview in Dreamweaver's Live View and in any browser is the index.cfm page of the exercises that I am working on. I have worked on these exercises on another computer, a laptop, with no problems. Both of the computer were running Windows 7 and all of the Site Setup information seems to be the same on both computers. Any ideas on what could be causing this? I cannot proceed effectively with the tutorials if this problem persists. I have all of the required components installed on my computer so I really don't know what the problem could be. Any help would be appreciated. Let me add that this is not happening with every CF document but with a particular Site Setup and exercises that I am working on through the tutorials that come with the Coldfusion tutorial provided by Lynda.com.
NOTE: I am learning ColdFusion MX at the moment, but I have ColdFusion 9.1 installed on the computer that I am having the problem on.
Copy link to clipboard
Copied
I don't quite get what you mean. Do you mean that if you browse to http://your.domain/some/path/index.cfm, then the file is processed correctly, however if you browse to http://your.domain/some/path/someFileName.cfm then it "doesn't work"? And what - in this case - does "doesn't work" mean? Do you get an error? Is the screen just blank? Based on what you say, it's a bit hard to offer any meaningful advice, sorry.
--
Adam
Copy link to clipboard
Copied
Adam,
Thanks for getting back to me. I have attached a .pdf and two (2) text documents which should serve to explain the problem in greater detail. I am sending this from my email which is how I am able to attach the documents. The pdf really shows my screen and what is actually happening. If you cannot open the files let me try to explain:
I have two (2) separate CF sites set up on my computer. I have the same sites set up on my laptop. I have downloaded lessons from Lynda.com so that I can learn CF. In one of the CF sites, which has graphics included, no matter what page I am working on when I go to view that page in "Live View" or any browser the only page that displays is the index.cfm page. I do not get an error message, what displays is only the index.cfm page. In other words, the only page that will display in this particular site in the index.cfm page. I do not have this problem on the laptop. I hope that clarifies the situation. If not please let me know. I am attempting to fix the problem but I do not know what to do as I have tried several things, including deleting the site setup and setting it up again. Any help would be appreciated. Thanks.
Click here for ColdFusion Problem.pdf or copy and past this link to your browser: http://luvchoseu.theggoc.com/images/stories/ColdFusion-Problem.pdf
Click here for user_list.cfm document or copy and paste this link in your browser: http://luvchoseu.theggoc.com/images/stories/ColdFusion_user_list.cfm_Code.txt
Click here for storyteller.cfm document or copy and paste this link in your browser: http://luvchoseu.theggoc.com/images/stories/ColdFusion_storyteller.cfm_Code.txt
Peter
Message was edited by: Peter G.
Copy link to clipboard
Copied
Nice PDF: that's a great way of demonstrating your issue.
But what you're demonstrating here is that you've got a problem with your DW config. It's nothing to do with CF. So you're better off asking about this on a DW forum. And I certainly can't help as I've not used DW for ten years or so, and never used the design or preview options even then. I always just check my work in a web browser.
What happens if you browse to these URLs in a browser.
--
Adam
Copy link to clipboard
Copied
Thanks Adam,
Whether I view them in the "Live View" or any browser I get the same results.
Peter
Copy link to clipboard
Copied
So you are telling me if you browse to http://your.domain/learningcoldfusion/admin/user_list.cfm, then it diplays the email / password page page? Does the URL in the address bar change? And similarly with storyteller.cfm?
What does header.cfm have in it?
Is there an Application.cfm or Application.cfc in that subtree anywhere? If so, what does that contain?
--
Adam
Copy link to clipboard
Copied
Hi Adam,
Yes, no matter what document I have open, in this particular site set up, ONLY the index.cfm displays. Yes there is an application.cfm and I have attached the link so that you can view it.
Click here to view the ColdFusion Problem 2 document or cut and past the link in your browser: http://luvchoseu.theggoc.com/images/stories/coldfusion_problem_2.pdf
Click here to view the header.cfm code or cut and paste the link in your browser: http://luvchoseu.theggoc.com/images/stories/ColdFusion_header.cfm_Code.txt
Click here to view the application.cfm code or cut and paste the link in your browser: http://luvchoseu.theggoc.com/images/stories/ColdFusion_application.cfm_Code.txt
Thanks for your help. I have sent this to the Dreamweaver Forum as well.
Peter
Copy link to clipboard
Copied
Well, there you go.
What does this code (your Application.cfm) do:
<cfapplication sessionmanagement="yes" /> <cfset sDSN = "learningcoldfusion" /> <cflogin> <cfif IsDefined('FORM.login_button.y')> <cfquery datasource="#sDSN#" name="qLogin"> SELECT lcf_user.user_id, lcf_user_type.type FROM lcf_user, lcf_user_type WHERE lcf_user_type.user_type_id = lcf_user.user_type_id AND lcf_user.email = '#FORM.email#' AND lcf_user.password = '#FORM.password#' </cfquery> <cfif qLogin.RecordCount GT 0> <cfloginuser name="#qLogin.user_id#" password="#FORM.password#" roles="#qLogin.type#" /> <cfelse> <cfset sHeaderMessage = "The email and password combination you tried is incorrect." /> <cfinclude template="login_form.cfm" /> <cfabort /> </cfif> <cfelse> <cfinclude template="login_form.cfm" /> <cfabort /> </cfif> </cflogin>
It checks if you're logged in, and if not it displays a login form.
So, if you're not logged in, yo'd pretty much expect to see what you're seeing on the screen.
--
Adam
Copy link to clipboard
Copied
Hi Adam,
This worked. I somehow had three (3) application.cfm files. One in the root, one in the admin folder and one in the config folder. I kept the one in the config folder as it does not have any data in it at the present time. I moved the other application.cfm to a folder outside of the root in case the lessons refer to them at some point in the lessons. I do not know if we will be putting data there later in the lessons. So everything is working fine. I am still getting the message that I do not have access to "C:\Coldfusion9\wwwroot\learningcoldfusion\_mmServerScripts\_notes\dwsync.xml was denied." This file does not even exist in that folder. But it is not stopping me from working on these lessons. Thank you very much. I hope I can return the favor sometime.
Peter