WP Table Builder – Cannot modify header warning in admin panel
-
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 9Upon investigating the issue, I found that line 78 in
Assets.phpcontains the following code:echo '<script type="text/javascript">var WPTB_CFG = ' . json_encode($data) . ';</script>';This direct
echostatement 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
The topic ‘WP Table Builder – Cannot modify header warning in admin panel’ is closed to new replies.