Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Migrated to Coldfusion 10 - PQgrid stopped displaying data

Posted on 2015-01-07
4
Medium Priority
?
85 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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

581 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