In a theme that i was working on, i got a JS Error “TypeError: offset is undefined” in firefox.
Due to this error the other scripts on the page also stopped working.
This happened on a custom page template which was lacking the call to
the_content(). A simple addition of
<div style="display:none;"><?php the_content() ?></div>inside the page template’s code, was able to resolve the error.
I think that flare should silently fail in case the page doesn’t have any content output on the frontend. I haven’t gone in depth on this but am willing to help provide any other information needed. I’m using v1.2.4
- The topic ‘JS error if page template lacks `the_content()`’ is closed to new replies.