Plugin Author
Steve
(@steveatty)
Try turning on the diagnostics and see what happens – its probably something quite simple that’s either a configuration issue or a bug that I’ve managed to introduce.
Well that’s weird. I turned on diagnostics about an hour before the scheduled post, but this time it DID get pushed to Facebook. The last three in a row didn’t. All of them were scheduled about a week ago, so there was definitely not a change in the wordbooker version between the previous three and this one.
Strange. We’ll see what happens next time, I guess…
Plugin Author
Steve
(@steveatty)
It could have been a glitch with Facebook – who knows. Thats the problem with doing things in the background – if they fail its sometimes hard to know why. Maybe I need to keep error messages for longer (I think I keep them for 3 days).
Could be. I checked the error message immediately after I noticed it wasn’t pushed to FB though, which was in turn only about 2 minutes after it was scheduled…so expiring error messages definitely wasn’t the issue 😛
Maybe something with w3totalcache.
Plugin Author
Steve
(@steveatty)
Total cache shouldn’t affect it though as this is code running in the “back end” which I would have hoped would be excluded from caching.
Yeah, I’d expect so too. Anyway, I guess I’ll just let u know if it happens again – it worked again today so maybe it was a random Facebook glitch.
It just missed another scheduled post; had to explicitly set it to Draft and click Publish to get it on Facebook. Like before, no records of the post whatsoever in the log (but it wasn’t on Advanced Diagnostics mode again, since the previous 2 schedules *did* work)
Plugin Author
Steve
(@steveatty)
Anything in the php error logs? Did the post go to your blog?
No php error logs, the post did go to my blog – just not to Facebook
No other ideas on how I could debug it? Again, it does seem to work 100% when I actually click “Publish” – the only times it misses it occur when the publication takes place via a schedule…
Plugin Author
Steve
(@steveatty)
All I can suggest is leaving the diagnostics turned on and keep checking and when it goes wrong we’ll look into it. Just check the logs and if its posted OK then clear the log down or it will just get very messy.
Enabled “Advanced Post diagnostics” 5 minutes before a scheduled post, waited till 5 minutes after, the post appeared on my site as expected but was not pushed to Facebook. Absolutely nothing appeared in the Diagnostic Messages on the Wordbooker admin panel.
Editing the post, changing it to “Draft”, saving, and then clicking “Publish” manually did push it to Facebook, and printed a massive amount of messages to the diagnostics, as expected.
Plugin Author
Steve
(@steveatty)
If there is nothing in the diagnostic logs this would suggest that the hook just isn’t firing at all which is very odd
Scheduled posts always work for you?
Which hook is used to publish in the case of scheduled – publish_post -> wordbooker_publish, same as a manual publication?
I wonder if this is helpful:
http://codex.wordpress.org/Post_Status_Transitions
Or this:
http://wordpress.org/support/topic/can-the-publish_post-hook-be-sensitve-to-future-time-stamps?replies=13