1
votes

I am hoping I can get an answer to this. We recently migrated a ColdFusion site to a new server, which has ColdFusion 9. The older server had 7 on it, maybe 8. Everything was working find on the old system. Now, I get the Element Undefined Errors.

The Application.cfm (not .cfc) is in the webroot where it always was. There is no Application.cfc file.

Here is a screen shot of the Application dump: enter image description here

Here is a sample page with the error: http://www.luxurylifestyle.com/listings/send_message.cfm?id=26552

So, in the screenshot above, there is the captchaseed, etc., but when it tries to call it - it says it's undefined.

Any help is GREATLY appreciated! I am sure this is something easy, but I've never done this migration before, so have no idea why it won't work.

ADDED FROM THE COMMENTS

In the Application.cfm, located in the web root, there is the following:

<cfset APPLICATION.captchaseed = 'ACDEFGHJKLMNPQRTUVWXY34679'>

Here is a link to the screen shot with the cfdump.

Here are a few examples of the undefined errors for reference: http://www.luxurylifestyle.com/listings/send_message.cfm?id=31820 http://www.luxurylifestyle.com/newsletter_box_action.cfm

1
So I take CAPTCHASEED is defined in application.cfm? If yes, the where is it defined. - nasaa
Yes, that's correct. In the Application.cfm, located in the web root, there is the following: <cfset APPLICATION.captchaseed = 'ACDEFGHJKLMNPQRTUVWXY34679'> - John Greenewald
Try Debugging Through application.cfm. So when you hit the url, put a dump of application object right after the CAPTCHASEED definition and see if it is hitting till there. And then Put some debugs around requests functions - nasaa
I'll be honest - I have no idea how to do that. Is there a specific code I can put in there to try? I appreciate your help with this. - John Greenewald
Can you put all these further details into the question, rather than in cooments and off-site images. - Adam Cameron

1 Answers

0
votes

I don't think we've got enough to answer this yet, but let's try.

Can you check your file system between send_message.cfm and the Application.cfm in your root directory, and check if there's any other Application.cfm in between.

Also check for any <cfapplication> tags in any of the files making up the request.

Can you also check your code for anything that might be clearing the application scope, or elements in it.

Can you also pls put a try/catch around the line that's erroring, and dump out the application scope at that point.

I suspect you have a second being initialised somewhere during your request which is overwriting the one you're expecting. This is, currently, just speculation.

I'll update this answer as more info comes in.