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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
tarahbuntonAuthor 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.