Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @scottsanfilippo!

    Thanks for your post and sorry for the trouble!

    The cause for this problem is not actually TablePress, but TablePress is just happening to “uncover” a bigger problem with this message:

    From what I can see, the entire footer section of your site is running/printing twice. This includes things like loading and executing of JavaScript files (of WordPress and all plugins). (And TablePress just happens to inform you about this with this message.)

    My strong guess is that your theme, likely in e.g. a “footer.php” file now has two calls to the WordPress PHP function wp_footer();

    Can you please check that?

    Best wishes,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @scottsanfilippo,

    quick update: A coworker found the cause for this:

    It seems that you are implementing a custom print function (something that adds code that starts with this:

       function runScottPrint() {
    var printContent = document.getElementById('scott-printable-content');
    if (!printContent) return;

    This is also printing the footer content, including HTML </script> tags. These are not escaped though, so that they prematurely end the “wrapper” <script> tag with your code.

    So, please remove this custom print functionality or refactor it to properly escape the code that this embedding via a JavaScript string.

    Best wishes,
    Tobias

    Thread Starter scottsanfilippo

    (@scottsanfilippo)

    Hi Tobais,

    Thank you! I went ahead and removed that completely and it’s working now. Strange that it always worked prior to me updating the plugin today. Thanks for your quick help!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    well, it’s possible that you only got that warning message now, but that the code was actually already broken all that time!

    Good to hear that this helped, though! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.