Robertson-Ravo, Neil (RX) wrote:

Well it may be a 'rule' and it certainly wont break the code.....


Lost your sense of humor Neil?

have you remembered to lock your application scope?

If this is CFMX, locking isn't required in this instance as its a readonly operation.

If I out put the variables phase,school etc without the cflocation all is
ok
The error occours when it goes links back to itself. (The above code is
individ.cfm)

hmmm... there is the possibility that you're getting stuck in a loop.....

<cfif get_head.user_type_id eq 2>
     <cflocation
url="individ.cfm?phase=#get_head.Phase#&school=#get_head.dfeeno#">

</cfif>

If the code you gave us was the whole of the page, then if user_type_id is 2, then you're gonna locate to this page, where you will do nothing with the query string, look up the user details again and locate back to this page again. The informative error message _may_ be indicative of this.

Its silly and its old fashioned (harks back to cf3), but I still try to remember to put a <cfabort> after a cflocation, so that nothing can be processed past the point where you hit the cflocation.

Otherwise, cut the template back to as little as possible and keep adding a bit back in until it breaks again. cfabort is always an easy way to do this with a cfdump of pertinant variable scopes before the abort.

Hope that helps some....

Regards

Stephen
PS.  Quit replying to an email to make to a new thread....  grrr.... ;)


-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
     *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
          *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]



Reply via email to