Skip to main content
Inspiring
August 9, 2016
Question

Error retrieving markup for element cf_div...........

  • August 9, 2016
  • 2 replies
  • 1664 views

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

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    August 11, 2016

    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.

    WolfShade
    Legend
    August 9, 2016

    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,

    ^_^