How to fix "getMetaData method was not found" error
Hello,
I installed CF2018 on Win2016 server and moved my code into it from CF9. Now I am receiving errors that I did not receive in CF9.
09:15:16.016 - Object Exception - in D:/Application.cfc : line 249
The getMetaData method was not found.
09:15:16.016 - Application Exception - in D:/Application.cfc : line 249
An exception occurred while calling the function getMetaData.
The line 249 refers to the <cfdump> tag in the following function in Application.cfm
<cffunction name="onError" returnType="void" output="false">
<cfargument name="exception" required="true">
<cfargument name="eventname" type="string" required="true">
<cfset var errortext = "">
<cfif isDefined("arguments.exception.rootCause") AND arguments.exception.rootCause IS "coldfusion.runtime.AbortException">
<cfreturn/>
</cfif>
<cfmail
to="me@company.com"
from="cf_server@company.com"
subject="ColdFusion request failed for #UCase(listlast(SESSION.curr_user,"\"))#"
type="html">
<p><strong>Error: <font color="red">#arguments.exception.message#</font></strong></p>
<strong>Time:</strong> #dateFormat(now(), "short")# #timeFormat(now(), "short")#<br>
<strong>Error on page:</strong> http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br>
<strong>Referrer:</strong> #cgi.HTTP_REFERER#
<p></p>
<cfdump var="#arguments.exception#" label="Error">
</cfmail>
<cfabort>
</cffunction>
Does anyone know how to fix it?
Thanks,
Eugene
