Skip to main content
Inspiring
March 13, 2014
Question

Upgrade from CF8 to CF10 now CFC cant read from request scope

  • March 13, 2014
  • 1 reply
  • 5791 views

Please bear with me as I am primariliy a systems and network admin as opposed to a developer.

We are in the process of migrating our code from CF8 to CF10, and the inhouse developers are complaining about one error they cant figure out.  We have a page that uses cfgrid to call a CFC.   This CFC throws an error about a request variable being undefined, however I do se that it is defined in the debigging information of the parent page. 

Error invoking CFC at /toDynamic/display/admin

sitecampuses.cfc : Element FUSEBOXOSNAME is undefined
in REQUEST.

I know we are using an older version of fusebox, but it would be a monstrous task to upgrade it at this point.

Any suggestions?

    This topic has been closed for replies.

    1 reply

    GuitsBoyAuthor
    Inspiring
    March 13, 2014

    It appears that the cfc is somehow calling fbx_Settings.cfm, however it is not calling index.cfm which sets request.fuseboxosname.

    Since we have no application.cfm file, how could the cfc call fbx_Settings.cfm?   I cant get my head around this.

    Carl Von Stetten
    Legend
    March 18, 2014

    Is there an Application.cfm/.cfc file in a parent directory above where the CFC resides?  ColdFusion will traverse the directory tree upward to the webroot to find an Application.cfm/.cfc.  If there is one, you might try creating a minimal Application.cfm/.cfc in the same directory as your CFC to short-circuit that process and guarantee a clean execution of your CFC.

    -Carl V.

    GuitsBoyAuthor
    Inspiring
    March 18, 2014

    No, there is no application.cfm in or anywhere above.  There are a couple instances of application.cfm off to side directories, but none that would call fusebox includes like the fbx_Settings.cfm file.  We have also tried adding a blank application.cfm, which did not make any difference.   The only thing that would call these files is the index.cfm file from two directories above.