Copy link to clipboard
Copied
Hi,
I have a page contains that contains three tabs.
The following error message like the one below will appear randomly when the page appears:
"Error retrieving markup for element cf_div........... :OK
[Enable debugging by adding 'cfdebug' to your URL parameters to see more information]"
I would like to know how to suppress the error message.
Below is the code for the first tab:
<cflayoutarea bindonload="true" closable="false" disabled="false" inithide="false" name="LTCServiceNameEdit" overflow = "auto"
selected="true" tabTip="text" title="Service Selection" align="left" >
<H6>Service</H6>
<cfoutput>
<cfinclude template="spltcserviceseditform.cfm">
</cfoutput>
</cflayoutarea>
Per my research, one of the solutions is below. How would the ColdFusion.setGlobalErrorHandler(handleGError); be placed in the above cflayoutarea?
function handleGError(s) { console.log(‘global error called ‘+s); }
ColdFusion.setGlobalErrorHandler(handleGError);
Using Cold Fusion 11, update 3 patch installed.
Thanks,
Mike
Copy link to clipboard
Copied
In scenarios like this, CFTRY/CFCATCH/CFDUMP is your friend. Just place the opening CFTRY before your cflayout, and the CFCATCH/CFDUMP after it. The CFDUMP should display the reason for the error, ideally giving you a starting point from which to troubleshoot the issue.
HTH,
^_^
Copy link to clipboard
Copied
It may or may not be the solution, but you should delete the cfoutput tag. It does not belong there. If you need it in the file spltcserviceseditform.cfm, then use it there.