Support » Plugin: Zaki Like Dislike Comments » Zakil-like-dislikes MobilePress headers error

  • Hello team,
    The plugin Zaki Like Dislike Comments is working fine on my desktop site but when trying to comment on my mobilepress theme it’s giving the error:
    Warning: Cannot modify header information – headers already sent by (output started at wp-content/plugins/zaki-like-dislike-comments/classes/class-zaki-like-dislike.php:169) in wp-includes/comment.php on line 680

    I have seen requests for support on this error. Can anyone help, especially the developer? What is wrong with the headers in the plugin?
    It looks and works so good on the desktop version I’d hate to have to use another similar plugin. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Riccardo Conte


    Hi adminziko,
    usually this error is due to an attempt to redirect preceded by an accidental output. Line 169 error is the function that output the HTML of rating system. (waiting for me to do more thorough checks) can you confirm that you’re not being accidentally made ​​one of the following things:

    Hi dynamix25,
    would be better to start a new topic, however I answer here πŸ˜‰

    Line 169 is in the function that display the HTML of rate system, so the possibilities is two:

    1) You try to use “headers” after comments HTML output
    2) You have put this code <?php if (class_exists(‘ZakiLikeDislike’)) ZakiLikeDislike::getLikeDislikeHtml(); ?> before theme <html>

    However without other details i can’t help you πŸ™
    Can you send me your html output as attachment?

    Best regards

    Thread Starter WPfreak


    Yes I read your response to dynamix25 and tried to to position the code <?php if (class_exists(‘ZakiLikeDislike’)) ZakiLikeDislike::getLikeDislikeHtml(); ?>
    in other areas of the comment loop, but still the error appears on the mobile site.
    I don’t quite know how to use “headers” before HTML output, how do i do that?
    Why is the desktop working well and the mobilepress comment throwing the errors?
    Unfortunately i have failed to attach the html output from my phone. Thanks Riccardo.

    Plugin Author Riccardo Conte


    The function that generates the error seems to be related to the creation of cookies comments (in wp-include/comments.php). I installed MobilePress on our test server but does not give me the error that you have shown me. It seems quite a few incompatibilities with JS or jQuery because it not allows me to click on the vote.

    So, I need further investigation to solve the problem, will do so as quickly as possible.
    Sorry for now πŸ™

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Zakil-like-dislikes MobilePress headers error’ is closed to new replies.