• Cannot modify header information – headers already sent by (output started at /var/www/doortodoor/2023/wp-includes/script-loader.php:2838) in /var/www/doortodoor/2023/wp-content/plugins/jwt-auth/class-auth.php on line 98

    I looked up the function and it applies to adding CORS support. The problem is that it is sending header information (i.e. header(…)) AFTER the header sent by script-loader.php.

    Any idea how to fix this?

Viewing 1 replies (of 1 total)
  • Hi i’m also experiencing the same thing with the script loader –

    PHP Warning: Cannot modify header information – headers already sent by (output started at /home/nifhsorg/public_html/members_site/wp-includes/script-loader.php:2925) in /home/nifhsorg/public_html/members_site/wp-content/plugins/custom-csv-reporter/custom-csv-reporter.php on line 779

    I’ve also used this at the start of my function to see if headers had already been sent or if they could be captures by output buffering but when you use this –

    echo var_dump(headers_list());

    this gets printed at the top of the page –

    array(5) { [0]=> string(38) “Expires: Wed, 11 Jan 1984 05:00:00 GMT” [1]=> string(70) “Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private” [2]=> string(48) “Referrer-Policy: strict-origin-when-cross-origin” [3]=> string(27) “X-Frame-Options: SAMEORIGIN” [4]=> string(38) “Content-Type: text/html; charset=UTF-8” }

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot modify header information – headers already sent…’ is closed to new replies.