Answered
Code migration, CF5 to CF8
I have an application that I'm attempting to migrate from CF5
to CF8, and I'm running into trouble. There are a number of pages
constructed like this:
<cfinclude template="first">
Some text, including CF code
<cfinclude template="second">
More text
template 'first' includes a query. Say its name is 'x'. In template 'second', there is
<cfloop query="x">
...
CF8 is returning the following error when this page loads:
Attribute validation error for tag cfloop. The value of the attribute query, which is currently x, is invalid.
The error occurred on line xxx.
CF8's Code Analyzer shows no errors when evaluating this code. But it's as if 'x', which is established in the first cfinclude, isn't passing through to the second cfinclude. Is this a fundamental change from earlier versions of CF?
Thanks in advance for any help.
<cfinclude template="first">
Some text, including CF code
<cfinclude template="second">
More text
template 'first' includes a query. Say its name is 'x'. In template 'second', there is
<cfloop query="x">
...
CF8 is returning the following error when this page loads:
Attribute validation error for tag cfloop. The value of the attribute query, which is currently x, is invalid.
The error occurred on line xxx.
CF8's Code Analyzer shows no errors when evaluating this code. But it's as if 'x', which is established in the first cfinclude, isn't passing through to the second cfinclude. Is this a fundamental change from earlier versions of CF?
Thanks in advance for any help.
