i'm working on a legacy app that uses cfform - i s...
# cfml-general
j
i'm working on a legacy app that uses cfform - i see that CF creates
_CF_checkfoo
functions for JS handlers and injects them into script tags... what would cause those functions to not get injected? I'm no longer seeing them after a lot of changes to the server and I'm not sure which change caused it
s
depends on what 'a lot of changes' means cfform is an extension that has to be added to lucee, it's not a native tag. so if somebody re-did the server deployment, check to see if it's still there (although iirc, it will just error if you call an unsupported tag)
j
it's ACF, and it looks like it's only happening on some pages. i converted it to coldbox, so i'm wondering if that's got something to do with it... it is very frustrating!
s
Nah, coldbox doesn't interfere with cfform at all (we still have a couple old pages with cfform on them) although we are on lucee
j
do you use any server rewrites?
j
If one of the changes was an upgrade to CF25, might be deprecated - https://helpx.adobe.com/coldfusion/deprecated-features.html
j
no still on acf2021
ah, so it's because there are
<cfcontent type="text/html;charset=somecharset">
calls on the offending pages... that causes a flush event and screws up cfform stuff
j
wow. good sleuthing! Glad you figured it out