Solved

Migrated to Coldfusion 10 - PQgrid stopped displaying data

Posted on 2015-01-07
4
68 Views
Last Modified: 2015-02-24
We recently migrated to CF 10.  Using jquery 1.11 and PQgrid, I displayed a list of people.  It has stopped displaying the list of people.  On the CFC call I get the following error:
 ColdFusion was unable to add the text you specified to the output stream.  This is probably because you have already used a CFFLUSH tag in your template or buffered output is turned off.

If I take out my cfhtmlhead tag that puts the Javascript in the head, the grid doesn't show at all.

All of the pages on the site go through a default template that puts a dashboard at the top of the page.  Everything else is added using cfinclude.  That's why it's necessary to use cfhtmlhead.  There are other things I could do to get the javascript in the head, but I want to understand the problem.

I had the same error on another page and change the Maximum Buffer Size to 4096 to solve the problem.  Something has to be wrong when it takes 4mg to load a page.
0
Comment
Question by:lanterv
  • 3
4 Comments
 

Expert Comment

by:M Amir
ID: 40538486
There is a configuration setting that is necessary for the <cfflush> tag to work properly with the web server. On the Configuring web servers in Windows documentation page, under the Configure IIS for ColdFusion in Windows section, among other things it states:


To disable webserver buffer, change the is_buffer_enable to false in the cfroot\config\wsconfig\1\isapi_redirect.properties file. Disable webserver buffer if you want cfflush to work over an IIS connector. If your application does not use cfflush, set it to true for increase in the performance.
 
You will need to restart IIS for this change to take affect.

I'm not sure what the performance ramifications are of disabling this setting. You will need to do some load testing for your particular environment to see.
0
 

Author Comment

by:lanterv
ID: 40538871
I'm not using cfflush.  I am using cfhtmlhead.
0
 

Accepted Solution

by:
lanterv earned 0 total points
ID: 40587843
I had to wrap my OnRequestEnd.cfm to check for .cfc so it won't add html after a function call.
0
 

Author Closing Comment

by:lanterv
ID: 40627766
No further responses.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now