Copy link to clipboard
Copied
Hi all
After migrating from CF7 to CF 10 we are getting this error "Unable to add text to HTML HEAD tag.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. The specific sequence of files included or processed is:"
Javascript code is available in script.cfm page.
We are referencing the Script .cfm in admin .cfm using CFInclude and CFFLUSH is nowhere avaialable but still it throws the error.
Only thing is we are referencing the script.cfm page more than once in admin.cfm.
PLease how to get ride of this error.
Thanks in advance.
Naresh.
Copy link to clipboard
Copied
Have you checked to see if output buffering is turned on? It's usually a good ideas if you have files sending headers in the mix.
Copy link to clipboard
Copied
Do you use the cfhtmlhead tag? If so, what for?
If not, then you might accidentally have chosen to show debugging output. In that case, switch it off in the administrator. If you have no access to the administrator, it might help to place the following line at the top of the offending page:
<cfsetting showdebugoutput="no">