Open basshcm opened 5 years ago
I believe this is related to https://github.com/cfwheels/cfwheels/issues/841 which is on our bug fix list for 2.1 - or at least, I think this is contributing to it: I think the function name callback is clashing with existing methods in the scope.
Thanks neokoenig. like I mentioned, I have a workaround for now. I will watch for the cfwheels 2.1 update.
neokoenig, I was trying to use the shortcodes plugin with cfwheels 2.0.
I am receiving the following error....
However it works when replacing line 28
result=$sc_REReplaceCallback(string=content, pattern=$sc_getRegex(), callback=$sc_processTag, scope="all");
withresult=$sc_REReplaceCallback(string=content, pattern=$sc_getRegex(), scope="all");
AND line 152
replace = callback(parts);
withreplace = $sc_processTag(parts);
I am confused why the callback function is not being recognized? I appreciate any help/direction you could give me.