After upgrading to the latest build I blew away all the App data and
project files to get a fresh start. Parts of the application is
working correctly, but I ran into a strange error on a page that had
been working previously.
The error message is:
Invalid CFML construct found on line 206 at column 25.
ColdFusion was looking at the following text:
>
The CFML compiler was processing:
* a cfif tag beginning on line 204, column 18.
* a cfif tag beginning on line 204, column 18.
For some reason it looks like Reactor is adding extra space and line
breaks to a <cfif> statement for the code generated for a record
object. Here's the code generated by Reactor that is causing the
problem:
<cffunction name="getUserSecurity" access="public" output="false"
returntype="any"
_returntype="reactor.project.Autec.Record.UserSecurityRecord">
<cfset var UserSecurity = 0 />
<!--- load the initial UserSecurity record. this will be empty
--->
<cfif NOT StructKeyExists(variables.children, "UserSecurity")
OR (
StructKeyExists(variables.children,
"UserSecurity")
AND NOT
IsObject(variables.children.UserSecurity)
) >
<cfset UserSecurity = _getReactorFactory().createRecord
("UserSecurity") />
<cfset UserSecurity._setParent(this, "UserSecurity") />
<cfset variables.children.UserSecurity = UserSecurity />
</cfif>
<!--- if this object has an related values that are not the same as
the values in this object then load the correct values --->
<cfif
>
<cfset variables.children.UserSecurity.load('') />
</cfif>
<cfreturn variables.children.UserSecurity />
</cffunction>
Anyone have any ideas why this is happening?
Thanks,
Brad
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --