Skip to main content
Participant
January 6, 2010
Question

Variable MESSAGECFID is undefined.

  • January 6, 2010
  • 1 reply
  • 335 views

Hi Everyone,

I developed a site long time ago in Coldfusion MX. I am trying Coldfusion 8 with 30 days trial. I am constantly getting an error message

"Variable MESSAGECFID is undefined. " on one of my file (attached : community.cfm) where I never use to got this message in MX server. Is it

something to do with my codes or do I have to set something in Coldfusion 8 server? I have used MS Acess database for this site. Can someone

please help me with this?

    This topic has been closed for replies.

    1 reply

    Inspiring
    January 6, 2010

    I presume the error is being thrown on line 90?  It always helps if you post the full error msg to avoid questions like this.

    Well... does messagecfid have a value?  Clearly not (as far as CF can tell, anyhow).  So you need to work out why.

    Firstly, dump out the messages query just before you loop over it, and inspect what data it contains.  Is it as you expect?

    What happens if you change the reference to it to qualify it with the query name?  Same error?

    --

    Adam

    Inspiring
    January 6, 2010

    Oh, and that COUNTS query is only used for a count of the records... so why do you return them all?  Just query for the count and return the single number.  But this has nothing to do with your problem.

    --

    Adam