• Resolved Rick Hellewell

    (@rhellewellgmailcom)


    (related to previous discussions about this issue).

    On my test multisite, on a sub-site, incoming Postie posts are showing up as ‘scheduled’, rather than immediately published. I see this also on a separate production sub-site.

    On the test multisite,I installed Postie (first time for that site). I adjusted only the email settings (mail server, port and email user/pass). I created a new email account on the host. No other changes to the default installation. The ‘test server’ process connected properly without errors.

    I created one post, and waited for it to be processed (I did not do a manual process). It came in OK, and was published (not scheduled).

    I then created two more emails, one after the other and waited for the automatic process of emails. Both of those emails were processed as ‘scheduled’. I repeated that with two more emails, and they also both came in as ‘scheduled’.

    Each email had a simple subject, and a couple of sentences. Content was processed correctly, but the second through fifth emails sent today are ‘scheduled’. I note that this ‘schedule’ issue has not happened prior to the last Postie update. It has happened on two separate multisite installations

    Since it is a test site, I can give admin access to the subsite to Postie support. Email me privately with your email account you want to use. I will set up an Admin user on that subsite, and let you do the ‘lost password’ thing to get access. I will make no further changes to the Postie configuration at this time.

    …Rick…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    I took a look at the code (just a part of it, so don’t grok the entire thing), but it looks like the mail process is finding a ‘delay’ tag for some reason, even though the word ‘delay’ is not in the body of the message. (Leaving aside the issue that tags are plain text in the message, not surrounded by brackets, which could cause random problems if the message happens to put a tag name in ‘normal’ text.)

    I turned on debug, and then sent a new email with minimal content. It was processed (manually via the settings page) and the post was stored as ‘scheduled’. This debug output (partial) related to the ‘delay’ tag:

    [24-Jan-2017 19:09:50 UTC] Postie [debug]: date header: Tue, 24 Jan 2017 11:09:10 -0800
    [24-Jan-2017 19:09:50 UTC] Postie [debug]: decoded date: Tue, 24 Jan 2017 11:09:10 -0800
    [24-Jan-2017 19:09:50 UTC] Postie [debug]: tag_Delay: delay: 0
    [24-Jan-2017 19:09:50 UTC] Postie [debug]: tag_Delay: delayed date:  2017-01-24 19:09:10
    [24-Jan-2017 19:09:50 UTC] Postie [debug]: tag_Delay: delayed with offset: 2017-01-24 19:09:10

    So the post is being delayed 8 hours. WP timezone is Los Angeles. Offset setting in Postie is 0.

    Post content (mail message) is

    [24-Jan-2017 19:09:50 UTC] Postie [debug]: filter_CleanHtml: <div dir="ltr">this is a test. this is only a test.<br></div>

    Default post tags from debug

    
        [default_post_tags] => Array
            (
            )

    Array extract from message (from debug output)

    [24-Jan-2017 19:09:50 UTC] Postie [debug]: Array
    (
        [post_author] => 1
        [comment_author] => [email protected]
        [comment_author_url] => 
        [user_ID] => 1
        [email_author] => [email protected]
        [post_date] => 2017-01-24 19:09:10
        [post_content] => this is a test. this is only a test.
        [post_title] => this is the 8th one
        [post_type] => post
        [ping_status] => open
        [post_category] => Array
            (
                [0] => 1
            )
    
        [tags_input] => Array
            (
            )
    
        [comment_status] => open
        [post_name] => this is the 8th one
        [post_excerpt] => 
        [ID] => 24
        [post_status] => publish
    )

    I can send the entire debug file privately; don’t want to post it here.

    But this new issue (didn’t happen before the last update) is affecting all sites that I manage. And it is irritating the site posters; they are expecting their emails to be turned into posts quickly (30 minutes) not hours after emailing.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the research. In this case the time is being converted to GMT (likely based on PHP settings). I’ve fixed it so date parsing happens in the WordPress defined timezone.

    FYI it is not finding a “delay” tag that just happens to be the function that figures out the post time with any optional delay.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Fixed in 1.8.26

    Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    No problem on the research…nice to see the quick response and fix.

    As part of my troubleshooting, I modified my “Multisite Post Reader” plugin to allow showing of future posts, so I could easily see them during testing. (The plugin shows all posts from all subsites on one page, to allow for monitoring of posts. It can also be used on non-multisite sites. Has parameters to limit the number of posts, word count, and show all post status types. It’s related to my “Multisite Media Display” plugin, which shows all uploaded media on all multisite sub-sites; allows me to easily find pictures that need to be rotated. Very useful [IMHO] for my multisite sites.)

    Thread Starter Rick Hellewell

    (@rhellewellgmailcom)

    Installed the latest update on my test multi-site. Sent emails, processed manually, all posts appeared as ‘published’ (not ‘scheduled’).

    Huzzah !!

    Thanks!!

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Excellent!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posts are Scheduled’ is closed to new replies.