Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
ColdFusion Force Header and Output Buffer 🔄 Reset - PC✗3
ColdFusion Force Header and Output Buffer 🔄 Reset

ColdFusion Force Header and Output Buffer 🔄 Reset

This will remove all html/text output in your page execution prior to running it. Handy if you need to get rid of some white space or, in my case today, output from code that is outside your control.

<cfscript>out = getPageContext().getOut();
method = out.getClass().getDeclaredMethod("initHeaderBuffer",arrayNew(1));
method.setAccessible(true); method.invoke(out,arrayNew(1));</cfscript>

Note: This will not work if a <cfflush> has been executed.

An alternative way is to use <cfcontent reset=”yes”>, which clears the buffer.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.