WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Simple Facebook Connect] Wrong post displayed in plublish pop-up (4 posts)

  1. mrb1972
    Member
    Posted 4 years ago #

    Hi,

    I have installed the basic comment pluging, I can login using my facebook account fine and post a comment, but when I add a comment a publish pop up appears asking me to publish or skip, but the article being published is different fromt the one im commenting on..

    anyone else have this problem?

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. trumanews
    Member
    Posted 4 years ago #

    Same problem for me. I can add a comment correctly, but the pop-up which ask to publish something else on the facebook wall refer to a different wordpress article...

    It's the same article where I've redirected when I log-out: http://wordpress.org/support/topic/344521#post-1355461

    Any suggestion?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    If you're getting redirected to the wrong place, then you have some plugin or some other piece of code that is messing up the query loop before the comment code. The comment code expects the query to be still in the state it was when the post ended.

    A lot of possible things can do this. The most common would probably be any badly written "recent comments" listing.

    Somewhere on your page, there's a reference to the post that it's redirecting to. Like the last comment on a recent comments list happens to be on that post, sort of thing. The query is being used incorrectly by that bit of code and leaving it in that state. Thus, when the comments code runs, it cannot tell what page it's on anymore, because the other code left the query saying that it was on some other page.

    There's no easy fix. Remove that bad code messing with the query or fix it. No other way, unfortunately. Note that this same problem can result in other more severe consequences, like comments going on the wrong posts or other oddities. It's a common problem with old code and badly made plugins.

  4. mrb1972
    Member
    Posted 4 years ago #

    You were spot on, its was a "popular post" script that caused the problem.. thanks

Topic Closed

This topic has been closed to new replies.

About this Topic