9 Replies Latest reply on Dec 10, 2016 3:04 AM by BKBK

    Variable "varName" undefined when trying to call a function

    WolfShade Level 4

      Hello, all,


      I was just shown that an application written by someone else over ten years ago is working fine under CF9 and CF10; but it's breaking in CF11.


      I have something like:

      <cfinclude template="../myComponent.cfc" />


      Now, in myComponent.cfc, I have a function:

      <cffunction name="getThisAttribute" returntype="string" output="no">
        <cfargument name="part1" /><cfargument name="part2" />
        <cfreturn thisValue />


      Under CF11, in the first page (again, this works in CF9 and CF10), if I do the following:

      <cfset thisVar = getThisAttribute(part1,'part2') />


      I get "getThisAttribute undefined".  Am I going to have to completely re-write how all this works if we switch to CF11???