cf10无法向HTML头添加文本 [英] cf10 unable to add text to HTML Head

查看:137
本文介绍了cf10无法向HTML头添加文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在正在加载的网页上收到以下错误:

I am getting the following error on a page we are loading:

coldfusion.runtime.CfErrorWrapper 
Unable to add text to HTML HEAD tag. 
[empty string] 

caused by

Template

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.

我对我们的应用程序中包含的所有文件进行了扫描,使用CFFlush。

I've done a sweep of all the files that are included in our application and cannot find anything that uses CFFlush.

输出在所有cfcs和组件上设置为no。我也试着在文件中添加cfsetting showdebugoutput = no。这没有帮助。

output is set to 'no' on all cfcs and components. I also tried adding cfsetting showdebugoutput = no in a file. That didn't help.

我在cfadmin中打开了请求调试,但没有帮助。

I turned request debugging on in cfadmin and that didn't help.

HTML Head在我们应用程式的其他部分运作良好,只是似乎在这一页。

The HTML Head works fine in other parts of our app, it just seems to be on this one page.

推荐答案

如果是特别长的网页,则CF可以自己刷新缓冲区。如果您签入CFAdmin,则在设置页面上有最大输出缓冲区大小的设置。我相信默认值是1024 KB。如果您的网页超过1兆内容,则CF可能会在您的< cfhtmlhead /> 代码运行之前清除缓冲区。请尝试增加缓冲区大小,或更改< cfhtmlhead /> 标记的位置,以查看是否可以更正此问题。

If it's a particularly long page, then CF may be flushing the buffer on its own. If you check in the CFAdmin, on the settings page, there is a setting for Maximum Output Buffer size. I believe the default is 1024 KB. If your page is over 1 meg of content, then CF may flush the buffer before your <cfhtmlhead /> tag runs. Try increasing the buffer size, or changing the placement of the <cfhtmlhead /> tag to see if that corrects the issue.

这篇关于cf10无法向HTML头添加文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆