Coldfusion 8 CFDiv binding error: content is not allowed in prolog

Error invoking CFC /cfc/team_doc.cfc : WDDX packet parse error at line 1, column 1. Content is not allowed in prolog.. [Enable debugging by adding 'cfdebug' to your URL parameters to see more information].

I am at a loss as to what the prob could be. There are two files on the same cf8 server (two applications). They both have the same cfide virtual directory mapped. The code works in one folder, but not the other.

I created a very basic test cfc and test page... same error.


Test cfm page using the cfdiv with bind
****
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>cfdiv Example</title>
</head>
<body>
<h3> using a div</h3>
<cfdiv bind="cfc:cfc.team_doc_cfc.test()" ID="theDiv"
        style="background-color:##CCffFF; color:red; height:350"/>
</body>
</html>

Open in new window

tarahbuntonAsked:
Who is Participating?
 
tarahbuntonConnect With a Mentor Author Commented:
Thank you. The problem was the app.cfm file. Our company had some security function in the app.cfm file in non-working folder that strips out special characters. That was interferring with the url params that were passed (I believe) to the cfajax.js file.

Thanks for your time and help.
0
 
azadisaryevCommented:
in the app where it does not work, do you output (or include) anything in the Application.cfm/cfc? like site header/stylesheets/etc?
if it's Application.cfc you are using, do you have onRequest method defined in it?

Azadi
0
 
HyperBPPCommented:
You might try setting <cfsetting enablecfoutputonly="true">, that way you control what gets ouput.

<cffunction name="test" output="true">
     <cfsetting enablecfoutputonly="true">
     <cfoutput>#yadayada#</cfoutput>
     <cfsetting enablecfoutputonly="false">
</cffunction>
0
All Courses

From novice to tech pro — start learning today.