Element DS is undefined in APPLICATION

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Element DS is undefined in APPLICATION

    I have followed all the advice from a previous thread
    but now i get a new error

    link: [url]www.healthhokkaido.com[/url]

    Element DS is undefined in APPLICATION.


    The error occurred in
    C:\Sites\Accounts\bimfire\healthhokkaido.com\www\f iles\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.




    quiero mas Guest

  2. Similar Questions and Discussions

    1. Element is undefined
      I get the message Form Element TXTSEARCH is undefined with this code: <cfset Session.Description = #Form.txtSearch#> I have a textbox called...
    2. Element DS is undefined in APPLICATION.
      Hi Everyone - Finally got to the upload stage. uploaded to my host - mx7 ok. www.healthhokkaido.com I get this Element DS is undefined in...
    3. Undefined element in form - Please Help
      I keep on getting a message displayed stating that I have an undefined element in a form - I have checked and everything looks OK - did a <cfdump>...
    4. Undefined element in form
      I keep on getting a message - Element STARTTIME_HOUR is undefined in FORM ??? I have checked everything that I can think of and can see...
    5. Element <VARIABLE> is undefined in URL
      Hi All, I can't seem to remember how to stop the error "Element DOCTYPE is undefined in URL". I am using the following code but I can't solve...
  3. #2

    Default Re: Element DS is undefined in APPLICATION

    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.
    jdeline Guest

  4. #3

    Default Re: Element DS is undefined in APPLICATION

    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
    quiero mas Guest

  5. #4

    Default Re: Element DS is undefined in APPLICATION

    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
    paross1 Guest

  6. #5

    Default Re: Element DS is undefined in APPLICATION

    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">

    quiero mas Guest

  7. #6

    Default Re: Element DS is undefined in APPLICATION

    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

    paross1 Guest

  8. #7

    Default Re: Element DS is undefined in APPLICATION

    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\f iles
    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

    quiero mas Guest

  9. #8

    Default Re: Element DS is undefined in APPLICATION

    "Well I checked out the server and seems that i have the same file twice but in
    different directories"

    By {I}same file{/I}, do you mean Application.cfm? Which directory path is
    your page in that errors out?

    jdeline Guest

  10. #9

    Default Re: Element DS is undefined in APPLICATION

    You should check the contents of the application.cfm in
    C:\Sites\Accounts\bimfire\healthhokkaido.com\www\f iles 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

    paross1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139