WP to Twitter
Sometime the Tweet is not automatically sent (7 posts)

  1. th3br41n
    Posted 2 years ago #

    Sometime I see that Tweets are not automatically sent to Twitter. It is a strange and unreproducible behaviour. I'm using a shortener.
    Do you know (or can guess) why?


  2. Joe Dolson
    Plugin Author

    Posted 1 year ago #

    Are you getting any error message when it happens, or is it just - arbitrary -- and silently fails with no notice?

    The truncation routine isn't perfect, so one relatively arbitrary reason that a Tweet would fail would be if it had too many characters; but this would usually return a 403 error.

  3. th3br41n
    Posted 1 year ago #

    No error messages is shown, just silently fails with no notice.

    However, on a new post with the same text, the Tweet is sent.

    If it were the truncation routine it should be reproducible, since at the same text should correspond the same truncation. Am I wrong?

  4. Joe Dolson
    Plugin Author

    Posted 1 year ago #

    Yes, if it was truncation I'd expect that to reproduce the problem.

    Although it depends on what you mean by the same text; not all text is equal in WP to Twitter -- a template of #title# #url# #tags# may produce different results than the output of that template written directly as a custom Tweet. This is because WP to Twitter pre-filters the template tags. Raw text without template tags is just treated as a single string.

    The other possibilities for failing silently with no notice include:

    1) WP to Twitter identified the post as one that should not Tweet. E.g., identified it as an edited post when Tweeting of edited posts is disabled. There's no clean way of differentiating between a newly published post and an edited post, so this can sometimes go awry.

    2) You ran into a fatal error during the save process that prevented a background process from running. Normally speaking, this would be fairly obvious, however.

  5. th3br41n
    Posted 1 year ago #

    Do you have any suggestion to discover the cause the next time I have the problem?

  6. Joe Dolson
    Plugin Author

    Posted 1 year ago #

    After publishing something that doesn't Tweet, check the post_date and post_modified dates; if the post_modified date is later than the post_date (when a post is initially published, they should be the same), then that post will have been identified as an edited post.

  7. th3br41n
    Posted 1 year ago #

    Ok, thanks...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP to Twitter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.