Link to home
Start Free TrialLog in
Avatar of rcbuchanan
rcbuchanan

asked on

client.cfid error

can u help.
i just upgraded from coldfusion mx 6.1 to  coldfusion mx 7.

the upgrade auto copied my settings from 6.1 across to version  - just fine.
BUT i'm getting an error on my web site ... that says ...

** Error Occurred While Processing Request
** Element CFID is undefined in CLIENT.
 
The error occurred in C:\web\opinionist\testcfid.cfm: line 9

7 :
8 : <body>
9 : <cfoutput>#Client.CFID#</cfoutput>
10 : </body>
11 : </html>


When it used to work!  ...
SO ... I made a simple cf page that just cfoutput the session var #Client.CFID# ...
and yup - ... it does not exist!

Any ideas what went wrong!? where do I check that the session var is enabled? - activated?


The COLDFUSION ADMIN panel says;
under server settings > memory variables
-> enable application vars - YES
-> enable session vars - YES

!? so I don't understand!

my application.cfm says

<cfsetting enablecfoutputonly="yes">
      <cfapplication name="fred"
      clientStorage="REGISTRY"
      clientManagement="YES"
      loginStorage = "session"
      sessionManagement = "YES"
      setClientCookies = "YES">
<cfsetting enablecfoutputonly="no">



Any ideas?
Richard
ASKER CERTIFIED SOLUTION
Avatar of mrichmon
mrichmon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rcbuchanan
rcbuchanan

ASKER

Mrichmon:
ok, not actually sure what ur asking but ...

re client var - yes, sorry. you are right. newbie.

re should not store client var in registry ...  can u explain? not understanding reasoning.

I rebooted the box after the upgrade of CF. is that what u mean re restarting CF services.

R.
Let me address each question:

>>re should not store client var in registry ...  can u explain? not understanding reasoning.

From Macromedia:
By default, ColdFusion stores client variables in the Registry. This can cause performance degradation in high-traffic sites as the Registry will increase considerably in size, causing ColdFusion server instability. Macromedia recommends storing client variables in an enterprise database.

If you start here:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/basicon6.htm and click the right arrows it will walk you through ways to migrate your client variables.

This link may also be of use:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17881


>>I rebooted the box after the upgrade of CF. is that what u mean re restarting CF services.
That will work - the services automatically get restarted if the server re-boots


>>re client var - yes, sorry. you are right. newbie.

The reason I pointed out this difference was my last question about login storage.

Often cold fusion thinks of the CFID and CFTOKEN as part of the login.  SO I am wondering if it is storing those in session rather than client scope.

One thing you can do is this:

#CFID# - see if that errors.

and try

#Session.CFID# - see if that errors

and try

#Cookies.CFID# - see if that errors.

This will show you if the CFID is being store anywhere at all....

Here are a few more links that may help:

Configuring and using client variables
http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/sharedVars4.htm

ColdFusion 4.5.1 SP2 and Up: Recommended settings for client variable storage
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17919

mrich ...
it was odd ... i removed the cfapplication setting and renetered ... and it now works.
so ... thanks for the tip re best practices and i'll tackle and improve but my fundamental problem seems to have cured itself.

cheers!
R.
strange, but glad it is working.