WordPress.org

Support

Support » Plugins and Hacks » Flare » JS error if page template lacks `the_content()`

JS error if page template lacks `the_content()`

  • 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

    ThankYou

    http://wordpress.org/plugins/flare/

  • The topic ‘JS error if page template lacks `the_content()`’ is closed to new replies.
Skip to toolbar