• Whenever I update a post I see the error “Updating failed. The response is not a valid JSON response.” and the post cannot update “officially” – but it does in the background. On the post’s edit page it looks as if is not updated.

    I see a text saying “like greeter” a second before any post loads in the back end. And in the front end you can see the same text on each post.

    I hope you can fix it.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tiotrom

    (@tiotrom)

    This is what breaks it:

     if($like_count > $dislike_count){
            $like_percent = round(($like_count / ($like_count + $dislike_count)) ,2) * 100;
            $dislike_percent = 100 - $like_percent;
            echo "like greater";
        }
        if($dislike_count > $like_count) {
            $dislike_percent = round(($dislike_count / ($dislike_count + $like_count)) ,2) * 100;
            $like_percent = 100 - $dislike_percent;
            echo "dislike greater";
        }

    Removing the echo “like greater”; fixes it. I wonder what is teh function of that.

    Plugin Author Mian Shahzad Raza

    (@mianshahzadraza)

    Thank you for your detailed explanation of the error, I will certainly look into this issue.

    Plugin Author Mian Shahzad Raza

    (@mianshahzadraza)

    Hi @tiotrom

    I have updated the plugin, looks like those lines were there by mistake when testing some things out.
    Please update the plugin and let me know if it resolved the issue?

    Thread Starter tiotrom

    (@tiotrom)

    thank you! I am unable to test right now but if those lines were removed than it should probably work. If I get to test it soon I’ll update here. Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘It kinda breaks a bit the latest WordPress’ is closed to new replies.