Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7046023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:36:04+00:00 2026-05-28T02:36:04+00:00

We have a coldfusion project on a live server, and the same project on

  • 0

We have a coldfusion project on a live server, and the same project on a local development server. Both projects are nearly identical but a few components under development on the dev server. Both servers have the same coldfusion version (cf9).

Suddenly I get a “variable is undefined” error in a component on the live project. This component is exactly the same on the dev project. However the dev project does not throw this error when the exact same code is executed as on the live project.

 private void function updateRecordById(required struct properties) {
    _updateRecord(arguments.properties, aliasFrom(this.name & "_id")&" = "&
    arguments.properties.id);
}

public string function aliasFrom(required string column) {
        var matchingKey = structFindValue(variables.aliases,arguments.column,"ONE");
        return (arraylen(matchingKey)) ? matchingKey[1].key : arguments.column;
    }

The error was “Variable aliasFrom is undefined” (line nr was second line in code sample above). After simply recompiling the component on the live server (by adding writeDump(“test”);) and restarting the application, the error was fixed.

It looks like the live server compiled updateRecordById(), but didn’t compile aliasFrom().

  • What could have caused this error?
  • How can I prevent this from happening again?
  • Why the heck don’t I have this error on the dev server in exactly the same code?

more info:

This project uses coldspring to load the components once at applicationStart. The live server has ‘cache template in request’, ‘component cache’ and ‘save class files’ enabled. Simply restarting the application doesn’t solve the problem. The component has te be recompiled.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:36:05+00:00Added an answer on May 28, 2026 at 2:36 am

    It is possible that ColdFusion was serving a cached version of the cfc that wasn’t identical. Do you have save compiled componenets enabled on the server?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just been assigned an inherited coldfusion project. The developer dropped everything and
I have the following architecture for my project: UI -> Web Server -> App
I have just started working with a new Coldfusion project, well the project is
I have a ColdFusion function foo which takes three args, and the second two
I have a ColdFusion script that does: <cfset content = replace(content,&##147;,,all)> Which replaces &147;
i have a coldfusion cfc and some methods in it. MethodA will return a
We have a medium sized ColdFusion code base for our Intranet and Website. For
I have started design of a ColdFusion application that is entirely web based. Not
i have some questions about constructors in ColdFusion : must i use the name
I have BlazeDS running in an instance of Coldfusion 8. A flex chat app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.