-
AuthorPosts
-
April 27, 2017 at 3:26 pm #784060
Hi,
I’m using ENFOLD 4.0 and the Usernoise plugin from Codecanyon.
Since activating the plugin I get this warning at the frontend of my site:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0148733/kunsttalk.de/wpmultisite/wp-content/themes/kunsttalk_enf/header.php:16) in /www/htdocs/w0148733/kunsttalk.de/wpmultisite/wp-content/plugins/usernoise/inc/integration.php on line 30
Line 16 in ENFOLD’s header.php is:
<html <?php language_attributes(); ?> class="<?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> ">
The plugin author said to this warning:
This warning is caused by output started by some other code/plugin before the moment Usernoise tries to send cookie. You can read more here: https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
This means the first part of this warning is the culprit and not the plugin, means the header.php of ENFOLD.
I found this in the forum from Yigit with a similar problem, and added the suggested snippet
add_theme_support('avia_no_session_support');
to ENFOLD’s functions.php, but this does not helped.
Any ideas please?
Thank you.April 28, 2017 at 2:39 pm #784580For me Enfold is doing nothing wrong as they produce legacy output in the <html> element which is the beginning of the document. Much more interesting would be line 30 of the usernoice plugin as it seems they are to late with what ever the are doing.
April 28, 2017 at 3:15 pm #784613but if you look at https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F, then the first part of the warning is the culprit – and this is ENFOLD.
No way to use both together?
April 28, 2017 at 3:23 pm #784622Yes of course the first part is the root cause. But that does not mean it is wrong. ‘I am late because the parking slot was occupied by another one … dude the car parking there is the owner of that parking slot’ ;-) Enfold is starting the output in <html> and that is correct (you can read the w3c definitions of html if you like). Your plugin is simply to late with what ever it tries. That’s why I said it would be interesting to see that code. A developer could easily debug this and tell the trues. Nothing that is possible in a forum.
April 30, 2017 at 2:18 pm #785240Hi Chris,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.
Thank you @mensmaximus.
Best regards,
VictoriaApril 30, 2017 at 6:55 pm #785357Thanks, the plugin author provided me a fix yesterday, which works now fine with ENFOLD.
If anybody else is using USERNOISE plugin, update it to the latest version from yesterday and it will work fine with ENFOLD.April 30, 2017 at 8:38 pm #785399Hey!
Thank you for also contacting the author plugin
That is really helpful so things can be finished.Cheers!
Basilis -
AuthorPosts
- The topic ‘Warning: Cannot modify header information – headers already sent’ is closed to new replies.