Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.

Avatar of Optikal420
Optikal420 asked on
Web Development SoftwareColdFusion Language
9 Comments1 Solution1805 ViewsLast Modified:
I have no idea why this message is coming up. And heres something that i dont understand. And nor does it make sence. It only happens when i use Firefox not IE7. How is this possible as it should all be handled on the server side i thought? Regardless heres the problem.

See the snippet of code. i get the error message "You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members." and it references '#ImageInfoMX.width#' as the problem, however its just fine with not '#ImageInfoMX.height#'.

I do a dump on ImageInfoMX and all the values are filled... Someone please help...
<CFFILE ACTION="UPLOAD" FILEFIELD="Picture" DESTINATION="<--Taken Out for this post-->" NAMECONFLICT="MAKEUNIQUE" result="fileupload">
<cfset newfile = fileupload.serverdirectory & "/" & fileupload.serverfile>
<CFX_ImageInfoMX FILE="#newfile#">
 
<cfquery name="Insert.Vehicle" datasource="mysqlcf_FleetDepot">
         INSERT INTO Vehicle 
	(Type, ImpOrDom, Year, Make, Model, Color, Serial, Odometer, Cost, MarketCost, Vehicle.Condition, Claims, Warranty, Details, Picture, PictureHeight, 	PictureWidth, Date_Created)
	VALUES ('#Form.Type#', '#Form.ImpOrDom#', '#Form.Year#', '#Form.Make#', '#Form.Model#', '#Form.Color#', '#Form.Serial#', '#Form.Odometer#', '#Form.Cost#', '#Form.MarketCost#', '#Form.Condition#', '#Form.Claims#', '#Form.Warranty#', '#Form.Details#', '#fileupload.SERVERFILE#', '#ImageInfoMX.height#',  '#ImageInfoMX.width#', now())
</cfquery>
ASKER CERTIFIED SOLUTION
Avatar of Optikal420
Optikal420

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answers