ryancramerdesign / ProcessHannaCode

Easily insert any complex HTML, Javascript or PHP output in your ProcessWire content by creating your own Hanna code tags.
24 stars 9 forks source link

Error with latest release #23

Closed gmclelland closed 3 years ago

gmclelland commented 3 years ago

Hi Ryan,

Just wanted to let you know that I'm seeing this error after upgrading the latest version of HannaCode. I see the error only when editing any page.

ScreenShot 2021-04-09 at 17 03 36

ryancramerdesign commented 3 years ago

@gmclelland I think that error may be coming from a different module or hook? Maybe one that is trying to call a method from TextformatterHannaCode? There is no method within or called by HannaCode by that name, nor does HannaCode load in the page editor, so I think something else must be calling upon it. Check your Modules > Site to see if there are any other modules that might be related to HannaCode. If you can't find anything, try doing a Modules > Refresh and then Modules > Site > Clear file compiler cache (button at bottom of screen).

gmclelland commented 3 years ago

Thanks Ryan,

It looks like it was probably caused by the https://processwire.com/talk/topic/4741-hanna-code-helper/ Hanna Code Helper module. I didn't realize I had that module installed. Uninstalling that module fixed the problem.

Jehfen commented 3 years ago

I have the same error message, but no Hanna Code Helper module installed... image

In this case, the Hanna code Textformatter is used in a CKEditor textarea.

Jehfen commented 3 years ago

Even creating a new template with just the Hannacode field in it throws an error image

Jehfen commented 3 years ago

After a second look, apparently the offending HannaCodeHelper module was installed, although I don't recall installing it, was it part of the previous version by default?

Anyway, disabling it, no more errors, problem solved.