I am hoping someone can assist with this problem of headers already sent in which has occurred twice.
I have lodged a support ticket on the pro site and had some email exchanges. I am unable to export a txt file from the Diagnostics tab because it throws a 503 service unavailable error each time. I have tried emailing it from that tab but have not heard as to whether the second attempt whether it went through. Even so the problem is still occurring and I am looking for help.
The PHP warnings are: Cannot modify header information – headers already sent in
/home/mysite/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 1195
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 749
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 750
/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php on line 751
I checked these files for whitespace or lines but all seemed in order.
I have not optimized the firewall. I deactivated the plugins systematically but no issues found. I ran my site on learning mode for a few days also.
I am on a shared server. Is there anything on the server side which could impact this behaviour given the 503? Or can these warnings be ignored?
I have no idea what to do next and suggestions would be greatly appreciated. Thank you for your time.
]]>mailchimp_set_cookie function in bootstrap.php seems to try set cookies even if headers have already been sent.
It seems that this has been known but not been fixed, since the errors are just commented out with an @.
Kind regards,
Niko
I am experiencing another issue where my pdf certificates will not generate when I upgrade the Certificates add-on to 2.1.0. They work perfectly in 2.0.7, but I get the following error when attempting to view the certificates after updating the plugin:
`Warning: strtoupper() expects parameter 1 to be string, array given in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php on line 1151
Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 42
Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 43
Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 44
Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 45
%PDF-1.4 3 0 obj <> /Contents 4 0 R>> endobj 4 0 obj <> stream x
Any suggestions on how to resolve?
Thank you!
]]>When I enable wpforms lite, my error log fills with the following warning.
PHP Warning: session_start(): Cannot start session when headers already sent
The warning points to a file in another plugin that has
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
I have tried all the usual remedies outlined in the link below, but I have been unable to resolve it.
https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php
The warnings are not pointing to a file your plugin, but thought I’d reach out to see if you had some suggestions on how I can resolve this ?
Thank you for your help.
Best Regards
Cette extension a généré 118 caractères de sortie inattendus lors de son activation. Si vous remarquez des messages ? headers already sent ?, des problèmes avec vos flux de syndication ou d’autres soucis, essayez de désactiver ou de supprimer cette extension.
En conjonction avec notamment le plugin ‘WooCommerce PDF Invoices & Packing Slips Professional’ on ne peut pas supprimer les factures (?à boucle sans rien faire au final) ni les renuméroter. Pour cela, il faut désactiver le plugin.
Merci d’essayer de faire le nécessaire.
Patrick
]]>Those lines relate to:
Line 46:
setcookie( ‘mc_session_ids[default]’, $this->session_ids[‘default’], current_time( ‘timestamp’, true ) + apply_filters( ‘Wc_Captcha_time’, Wc_Captcha()->options[‘general’][‘time’] ), COOKIEPATH, COOKIE_DOMAIN, (isset( $_SERVER[‘HTTPS’] ) && $_SERVER[‘HTTPS’] !== ‘off’ ? true : false ), true );
and Line 49:
setcookie( ‘mc_session_ids[multi][‘ . $i . ‘]’, $this->session_ids[‘multi’][$i], current_time( ‘timestamp’, true ) + apply_filters( ‘Wc_Captcha_time’, Wc_Captcha()->options[‘general’][‘time’] ), COOKIEPATH, COOKIE_DOMAIN );
I truly appreciate all the work that goes into creating such a plugin and would be very happy to leave a glowing review except that I removed a different plugin to add yours for the same reason. Huge logfiles of “headers already sent” without being able to fix it. Please if it is possible, let me know how I can fix this. WP is v 5.5, PHP is v. 7.4
I believe in supporting responsive plugins!
Thank you
2fer
[17-Aug-2020 19:17:15 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/wp-includes/embed.php:753) in /home/xxx/public_html/wp-content/plugins/optinmonster/OMAPI/RestApi.php on line 138
I get an error page when submitting a WP Form while the FB Pixel Plugin is active.
The messages still come through but the user gets the following error on a white page instead of being forwarded to the “thank you” page.
Warning: Illegal string offset 'first' in /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPForms.php on line 112
Warning: Illegal string offset 'last' in /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPForms.php on line 112
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPForms.php:112) in wp-includes/pluggable.php on line 1265
Warning: Cannot modify header information - headers already sent by (output started at wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWPForms.php:112) in /wp-includes/pluggable.php on line 1268
(I deleted the website details in the URL)
When I deactivate the FB Pixel Plugin it works fine.
]]>[06-Dec-2019 17:28:02 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web219/b3/54/53764654/htdocs/WordPress_01/wp-content/themes/mytheme/labels.php:1) in /mnt/web219/b3/54/53764654/htdocs/WordPress_01/wp-login.php on line 468
The the beginning of the file labels.php:
<?php
There is no whitespace or empty line before it. What can be the problem?
]]>