• I am starting a new thread to address another problem I am having:
    To summarize the issue “However, the latest issue is that comments being copied from FaceBook back to WordPress is not working correctly. I had to turn off the feature. I checked one of the WordPress posts only to see a comment repeated 13 times. It appears everytime the cron job ran, it copied it back over, not realizing it was already there.”

    To answer John’s questions. My timezone is set to Los Angeles in WordPress, UTC – 8. Here is some information from the debug.txt. I didn’t copy everything, only 2 cron jobs where you can see it bringing the same comment back over although it already brought it over.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Eckman

    (@johneckman)

    Very interesting. 😉

    So at line 113/114 in your debug.txt is the point of failure.

    At line 113, we’re inserting the comment – after inserting the comment, the next thing wpbook should do is update the value it uses to track ‘last comment imported’.

    Seems like what happens is that the comment gets inserted (because you see it in your comments) but the timestamp never gets updated.

    The next line, 114, in the debug.txt, is when the next cron job fires.

    This means we’re getting to and past line 334 of wpbook_cron.php but not getting to 341. Likely dying somewhere in line 337, where we actually insert the comment and do the notification.

    Are you running any anti-spam plugins which might be interrupting automated insertion of comments?

    Thread Starter bucksw

    (@bucksw)

    I am using Akismet version 2.5.3. But I have auto-approval turned on in the settings of WPBook. And the comment did make it to the website, it wasn’t caught in the spam filter or anything.

    Plugin Author John Eckman

    (@johneckman)

    It seems to be failing *after* posting the comment, when it tries to do comment notification.

    Can you change line 337 from:
    do_action('comment_post', $my_id, $data['comment_approved']); // notification normally done in wp_new_comment

    To:

    // do_action('comment_post', $my_id, $data['comment_approved']); // notification normally done in wp_new_comment

    (In essence taking out the notification – the comment will still have been posted, but you won’t get a notification from WP. That will tell us if something is failing at that step)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WPBook] Repeating comments from FB to WP’ is closed to new replies.