• Hello,

    I am experiencing a warning message in the WordPress admin panel when creating a new page. The warning appears at the top of the page but disappears once the editor fully loads. The message is:

    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/wp-table-builder/v2/inc/Utils/Assets.php:78) in /wp-admin/admin-header.php on line 9

    Upon investigating the issue, I found that line 78 in Assets.php contains the following code:

    echo '<script type="text/javascript">var WPTB_CFG = ' . json_encode($data) . ';</script>';

    This direct echo statement is causing the issue because it outputs content before WordPress can modify headers.

    Could you please confirm if this is a known issue and whether a fix is planned for future updates? Thank you for your assistance.

    WordPress: 6.7.2
    PHP version: 8.4.3 (Supports 64bit values)

    Best regards,
    Stas

    • This topic was modified 1 year, 3 months ago by Stas.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Saad

    (@protibimbok)

    Hello,

    This is not a known issue.
    Thank you for reporting this and for the insight.
    We are looking into it.

Viewing 1 replies (of 1 total)

The topic ‘WP Table Builder – Cannot modify header warning in admin panel’ is closed to new replies.