November 25, 2007
Posted At : 10:26 AM
| Posted By : clint317
Related Categories:
Coldfusion
Coldfusion error - "Can't load a null."
The error for my particular situation was caused by trying to pass a param into a function within a cfm file, it doesn't work this way.
The error: catch.cfm (a custom tag) *condensed*
<cfparam name="Attributes.file" default="log.log"/>
<cfparam name="maxFileSize" default="500"/>
<cffunction name="fileSizeCheck" access="public" returntype="void">
<cfargument name="file" type="string" required="no" default=""/>
<cfargument name="maxFileSize" type="numeric" required="no" default="#maxFileSize#"/>
</cffunction>
The error in the above code was trying to use #maxFileSize# as a default value for a cfargument. I changed it to the actual value '500' and it worked.
Thanks, it is working for me as well.
Posted By
VCP-310 / Posted At 4/17/09 11:14 PM
try scoping it in variables.
Posted By tfelice / Posted At 4/21/09 3:37 PM
http://www.game4power.com
http://www.wowgoldone.com
Posted By
wow gold / Posted At 6/1/09 4:00 AM