Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    #784580

    For 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.

    #784613

    but 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?

    #784622

    Yes 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.

    #785240

    Hi 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,
    Victoria

    #785357

    Thanks, 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.

    #785399

    Hey!

    Thank you for also contacting the author plugin
    That is really helpful so things can be finished.

    Cheers!
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Warning: Cannot modify header information – headers already sent’ is closed to new replies.