Support » Plugin: WP to Twitter » Sometime the Tweet is not automatically sent

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    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.

    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?

    Plugin Author Joe Dolson

    (@joedolson)

    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.

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

    Plugin Author Joe Dolson

    (@joedolson)

    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.

    Ok, thanks…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sometime the Tweet is not automatically sent’ is closed to new replies.