Solved

Migrated to Coldfusion 10 - PQgrid stopped displaying data

Posted on 2015-01-07
4
70 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do you setTimeout in JQuery? 1 22
Two wordpress questions 3 46
Help with removing item from Session Array 3 24
How can i  prevent default  Submision? 6 28
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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)

831 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