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

Element DS is undefined in APPLICATION

New Here ,
Jun 06, 2006 Jun 06, 2006
I have followed all the advice from a previous thread
but now i get a new error

link: www.healthhokkaido.com

Element DS is undefined in APPLICATION.


The error occurred in C:\Sites\Accounts\bimfire\healthhokkaido.com\www\files\catalog_getCategories.cfm: line 1

1 : <cfquery name="qGetCategories" datasource="#application.ds#">
2 : select id,name from categories
3 : </cfquery>


--------------------------------------------------------------------------------

Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.


TOPICS
Database access
2.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
Guest
Jun 07, 2006 Jun 07, 2006
Typically, a datasource will be a simple text string, like "myDatasource". Go to ColdFusion administrator and change the name of the datasource to something simple.
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 ,
Jun 07, 2006 Jun 07, 2006
HI thanks for the advice
this is part of a shopping cart kind of system

this works fine on my developer system
im having trouble on the net

any more advice most welcomed
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
Mentor ,
Jun 07, 2006 Jun 07, 2006
Check the application.cfm template that is in the path for catalog_getCategories.cfm as it looks like you aren't setting the application.ds variable there.

Phil
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 ,
Jun 08, 2006 Jun 08, 2006
these are what i have - im a bit of a newbee what should i change - worried im going to stuff something up?
thanks again
Mark
<!--- Application Settings --->
<cfapplication name="shoppingCart" sessionmanagement="yes">

<!--- Application Variables --->
<cfparam name="application.ds" default="cart">

<!--- Monetary Variables --->
<cfparam name="application.taxrate" default="0.08">
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
Mentor ,
Jun 08, 2006 Jun 08, 2006
You say it works OK on your development system but not in "production", so where is the application.cfm that contains this variable declaration located in relation to the catalog_getCategories.cfm template on your production system, and is there another application.cfm located between that one and this template?

Phil
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 ,
Jun 08, 2006 Jun 08, 2006
Well I checked out the server and seems that i have the same file twice but in different directories
C:\Sites\Accounts\bimfire\healthhokkaido.com\files has one and the other
C:\Sites\Accounts\bimfire\healthhokkaido.com\www\files
and the index page
C:\Sites\Accounts\bimfire\healthhokkaido.com

what a mess! for some reason its like this
Any ideas Phil?
Most appreciated
Mark
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
Jun 09, 2006 Jun 09, 2006
"Well I checked out the server and seems that i have the same file twice but in different directories"

By same file, do you mean Application.cfm? Which directory path is your page in that errors 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
Mentor ,
Jun 09, 2006 Jun 09, 2006
LATEST
You should check the contents of the application.cfm in C:\Sites\Accounts\bimfire\healthhokkaido.com\www\files against what you have in development, specifically where you are setting the application.ds variable. I suspect that this is missing on your production system. Why is it like this? Good question, since I am assuming that you are the one that should be controlling what ColdFusion files are on both sites.

Phil
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