• Resolved splaestro

    (@splaestro)


    Hello, I’m seeing behavior very similar to what was reported here quite awhile back (but I’m seeing this with Postie v1.5.7 on WP v3.5.1):

    https://www.ads-software.com/support/topic/plugin-postie-posts-remain-in-scheduled-state?replies=1

    Postie reports success and the posts are there in the Dashboard, but their status is “scheduled” as opposed to “published,” and the Date column reads “Missed Schedule”

    I’ve turned on logging and don’t see anything related to delays or schedule there.

    One non-standard thing about my setup: because I couldn’t seem to get the cron stuff working inside WP, I’m using a procmail script to call Postie’s get_mail.php, and I’m invoking php to call it rather than wget or whatever. Yes, I know, probably more resource-intensive than needed, but this is a low-traffic site.

    Thanks.

    https://www.ads-software.com/extend/plugins/postie/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Why aren’t you using wget or curl? I’m not sure WordPress will work if you call if through the command line.

    Thread Starter splaestro

    (@splaestro)

    Thanks for your response.

    Why aren’t you using wget or curl?

    The site is protected with .htaccess for the time being, and I’m always nervous about putting credentials in plain text files. Also, there’s a nice side effect to procmail’s logging, in that it will capture what Postie writes to stdout when I invoke the page from the command line.

    Still, I’ll try wget and if it yields better results, I can do the additional work to secure the credentials and maybe capture the output as well.

    I’m not sure WordPress will work if you call it through the command line.

    Just to be clear, everything seems to “work”, as I described in my initial post, except that the posts don’t get published. But perhaps you mean that calling the page from the command line won’t fully configure the WP environment and therefore the posts get the wrong status?

    Thread Starter splaestro

    (@splaestro)

    Update: wget from the command line will publish a post with no problem. However, when I initiate the call from procmail, I get the same result as when calling php from procmail: the post is created, but its status is “scheduled” as opposed to “published,” and the Date column reads “Missed Schedule”. So perhaps the problem is with how procmail invocations work??? I can’t imagine why that would make a difference, but maybe it does.

    FWIW, this is the relevant action in my .procmailrc:

    :0 hW
      |wget -a $LOGFILE -O - https://mydomain.org/dev/wp-content/plugins/postie/get_mail.php
    Thread Starter splaestro

    (@splaestro)

    OK, it looks like things are now working well enough. In the dashboard, posts are still ending up with a “scheduled” status/”Missed Schedule” label. I think this may have to do with a two-minute lag between the timestamp of the e-mails and the server’s time (messages are ahead of server).

    But I was forgetting that I have to refresh a page on the site itself in order for the cron process to run Postie’s hook. Once I do that, the missed posts get published. It’s a bit weird, but it works.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Posts scheduled with "Missed schedule" rather than published’ is closed to new replies.