Hosting moved to new server with newer version of CF. Site
was written in CF 4.5.
Error reads as follows:
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 <CFIF> tag. This was
possible in ColdFusion 2.0 but creates an error in later versions.
Have tried everything, can't figure it out!!! Anyone have ANY
ideas I can try?? Attached exact code where page stops and error
comes up. Hopefully it is viewable ok.
Your code is referencing a variable named URL. After
ColdFusion 4.5, this name became a variable scope and is a reserved
word. Since the URL variable is now a structure containing all data
passed via HTTP Query Parameters, trying to output the variable
using pound signs will cause an error. Renaming this variable to
something other than URL should fix the problem.