Hello i've upgraded my Cold Fusion version to MX7 from Cold
fusion 5 and runing into some problems with some of the code that
worked fine under 5 right off the bat.
I get the following message below. The Backend is a 4th
dimension Database. Any help would be appreciated i am not a Cold
fusion developer so i'm trying to figure out if its worth the
update to MX7 or not.. if everything has to be re-written it most
likely would not be but if this is an easy fix it just might!!
thanks:
Complex object types cannot be converted to simple values.
The expression has requested a variable or an intermediate
expression result as a simple value, however, the result cannot be
converted to a simple value. Simple values are strings, numbers,
boolean values, and date/time values. Queries, arrays, and COM
objects are examples of complex values.
The most likely cause of the error is that you are trying to
use a complex value as a simple one. For example, you might be
trying to use a query variable in a %26lt;CFIF%26gt; tag. This was
possible in ColdFusion 2.0 but creates an error in later versions.
The error occurred in
E:\InetPub\wwwroot\cfdocs\msquared\LoggedIn.cfm: line 22
20 :
21 : %26lt;CFOUTPUT%26gt;
22 : %26lt;CFSET Stuff = URL %26amp;
''Login/#URLEncodedFormat(Stuff)#''%26gt;
23 : %26lt;/CFOUTPUT%26gt;
24 :
help with code please in MX 7?
20 :
21 : %26lt;CFOUTPUT%26gt;
22 : %26lt;CFSET Stuff = URL %26amp;
''Login/#URLEncodedFormat(Stuff)#''%26gt;
23 : %26lt;/CFOUTPUT%26gt;
24 :
'URL' is a protected structure variable in MX 7. You can not
use it as
a value like you are doing in line 22. I am not sure what
that line is
trying to do, so I can not easily guess what the solution
would be. But
most likely it would be just to change the 'URL' variable
name
throughout your application to something more unique.
heather_delo wrote:
%26gt; Hello i've upgraded my Cold Fusion version to MX7 from
Cold fusion 5 and runing
%26gt; into some problems with some of the code that worked
fine under 5 right off the
%26gt; bat.
%26gt; I get the following message below. The Backend is a 4th
dimension Database.
%26gt; Any help would be appreciated i am not a Cold fusion
developer so i'm trying to
%26gt; figure out if its worth the update to MX7 or not.. if
everything has to be
%26gt; re-written it most likely would not be but if this is an
easy fix it just
%26gt; might!! thanks:
%26gt;
%26gt; Complex object types cannot be converted to simple
values.
%26gt; The expression has requested a variable or an
intermediate expression result
%26gt; as a simple value, however, the result cannot be
converted to a simple value.
%26gt; Simple values are strings, numbers, boolean values, and
date/time values.
%26gt; Queries, arrays, and COM objects are examples of complex
values.
%26gt;
%26gt; The most likely cause of the error is that you are
trying to use a complex
%26gt; value as a simple one. For example, you might be trying
to use a query variable
%26gt; in a %26lt;CFIF%26gt; tag. This was possible in ColdFusion
2.0 but creates an error in
%26gt; later versions.
%26gt;
%26gt; The error occurred in
E:\InetPub\wwwroot\cfdocs\msquared\LoggedIn.cfm: line 22
%26gt;
%26gt; 20 :
%26gt; 21 : %26lt;CFOUTPUT%26gt;
%26gt; 22 : %26lt;CFSET Stuff = URL %26amp;
''Login/#URLEncodedFormat(Stuff)#''%26gt;
%26gt; 23 : %26lt;/CFOUTPUT%26gt;
%26gt; 24 :
%26gt;
%26gt;
help with code please in MX 7?
Hi Ian thanks for responding! on this page its trying to
retreive an email address and password. So if i were to change
anywhere that im using URL as a value to something else like PageID
so in this case the line would read: %26lt;CFSET Stuff = PageID %26amp;
''Login/#PageIDEncodedFormat(Stuff)#%26gt; i might be ok... in this
case? thanks again for the explanation!
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment