• Resolved tgiokdi

    (@tgiokdi)


    the plugin is workign wonderfully, except for the one small problem that it’s publishing posts 3 or 4 hours before they’re actually scheduled to post. I think this may have something to do with the server time offset, but I’m unable to find any other mentions of a fix on the wp forums.

    I’d even be ok with this one hickup, but when I do publish a post immediately, it’s listed 4 posts down from where it should be.

    http://wordpress.org/extend/plugins/wp-missed-schedule/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor slangji

    (@slangji)

    Hey Hey Hey πŸ™‚

    I perfectly understand the problem πŸ˜‰ But it does not depend on my plugin!

    If a post is “missed” was republished when it is found from the scan performed by the plugin. This scan is done every 5 minutes (first 15 minutes) and therefore the actual time of publication of the post “missed” will be increased to 5 minutes or more, than the original scheduled. To this we must add the delay time of the server, if it is incorrect, or if the post is syndicated by a source with a different time zone than the server, or if you do this manually. This is inevitable. You can not correct because it is the mechanism of correction and republication that dictate. The plugin checks the date and time of the original post “missed” and republish. It is said to be found after 5 minutes. Could be found even after 10 minutes or more. This does not depend on a bug in the plugin, but a delay of the scan to find the post “missed. ” The date will be increased by the WordPress publishing system that publishes and date when it finds. Not before. You can make this change manually by editing the post and changing the date. For now you can not publish the original date.

    Remember:
    1 – Make Sure that php time server is sincronized with local time?
    2 – Make sure that all timezone and php time references at all levels of your server are correct!

    I end up adding that this is a change that I will soon, with a new implementation, if it is possible to do. The normal things I try to correct them but I’m gearing up for the miracles.

    Bye πŸ˜‰

    Thread Starter tgiokdi

    (@tgiokdi)

    I have no clue what you mean by this:

    Remember:
    1 – Make Sure that php time server is sincronized with local time?
    2 – Make sure that all timezone and php time references at all levels of your server are correct!

    I have the server offset properly configured, but the server is in another time zone from me and from the time that I want the posts to be scheduled for. is there a way to add in a +4 hours to the code so the posts show up in the right spot?

    Plugin Contributor slangji

    (@slangji)

    … umh πŸ™‚

    1 – Try to select one WordPress “Time Zone” with 4+ hours.
    2 – Try to select one Server “Time Zone” with 4+ hours.

    This is for automatic scheduled posts only.
    For manual post you adjust date yourself.

    Let’s see if it works πŸ˜‰

    Thread Starter tgiokdi

    (@tgiokdi)

    I’m sorry, but I think there’s a language barrier here.

    what do you mean by those two things? My server time can’t be changed and the plugin isn’t looking at the wordpress offset. how do I make it look at the wordpress offset?

    Plugin Contributor slangji

    (@slangji)

    I perfectly understand the problem but it is not related on my plugin πŸ™‚ You search custom configuration assistance for your WordPress http://wordpress.org/support/topic/change-default-publish-time-and-date-to-last-recent-post-1-hour but it is not related to my plugin. If you need WordPress assistence please refere here http://codex.wordpress.org/Main_Page πŸ˜‰ If you need Server Time Zone assistence http://wordpress.org/support/topic/schedule-posts-automatically follow here http://wordpress.org/support/topic/missed-schedule-problems-in-304 πŸ˜‰ Please do not reply again on this topics because is off-topics πŸ™‚ If my plugin “for you not work” please delete it end never use on future … πŸ™‚

    Thanks! πŸ™‚

    Thread Starter tgiokdi

    (@tgiokdi)

    The problem is explicitly due to the way that the plugin works. it’s publishing from the server time and the front page of the site is looking at the offset time. Why are you linking me to a completely unrelated post that I made years ago?

    this is related to your plugin, and this issue is not yet resolved.

    For a recap, your plugin is publishing posts too early, it’s simply not looking at the post time offset. to be specific, I’m referring to the “timezone” settings on http://www.example.com/wp-admin/options-general.php

    Here’s a case example. it’s 7am here, and I have the wordpress set to -4 UST. Your plugin does not respect this timezone setting and publishes posts that should not be up for another 4 hours, publishing everything that’s scheduled until 11am. If I happen to write a post ‘live’, it shows up after all the posts that were incorrectly published by the plugin. this isn’t for one or two “missed” posts, but for every single post that’s scheduled.

    I’m pretty sure that this is because the plugin is just looking at the post status, then looking at the server time and publishing it, without considering the timezone situation.

    to be completely clear, it is THIS plugin that’s causing the situation and no other. I’ve tested it on completely new blogs and get the same results.

    please do not mark this topic resolved until it’s actually been resolved.

    Thanks! πŸ™‚

    Plugin Contributor slangji

    (@slangji)

    My plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms of the [GNU General Public License](http://wordpress.org/about/gpl/) as published by the Free Software Foundation. This program is free software GPL, but licensed work is under Creative Commons License; you can use it only with the terms of [Attribution-Noncommercial-No Derivative Works 3.0 Unported](http://creativecommons.org/licenses/by-nc-nd/3.0/) not For Resale or Business Purpose. πŸ™‚ My legal is waiting to verify your respect of licensing. πŸ™‚

    The problem is explicitly due to the way that the plugin works.

    OK πŸ™‚ My plugin is not for you. Use another plugin. πŸ™‚

    For a recap, your plugin is publishing posts too early, it’s simply not looking at the post time offset. to be specific, I’m referring to the “timezone” settings on http://www.example.com/wp-admin/options-general.php

    Here’s a case example. it’s 7am here, and I have the wordpress set to -4 UST. Your plugin does not respect this timezone setting and publishes posts that should not be up for another 4 hours, publishing everything that’s scheduled until 11am. If I happen to write a post ‘live’, it shows up after all the posts that were incorrectly published by the plugin. this isn’t for one or two “missed” posts, but for every single post that’s scheduled.

    I’m pretty sure that this is because the plugin is just looking at the post status, then looking at the server time and publishing it, without considering the timezone situation.

    My plugin publish a bunch of future posts noticed that they won’t publish and when time comes to go live they just turn Missed Schedule. Took a look at the WordPress code and noticed future posts get assigned a cronjob wp_schedule_single_event($unix_time_stamp, ‘publish_future_post’, array($post_ID)) http://codex.wordpress.org/Function_Reference/wp_schedule_single_event Why don’t you just look at the database and publish all posts with future status and date in past? My plugin WP Missed Shcedule looks for posts with a date in the past that still have post_status=future. It will take each post_ID and publish wp_publish_post http://codex.wordpress.org/Function_Reference/wp_publish_post it.

    Others considerations how to my plugin work are off-topic and not a support question.

    Have a Good Day tgiokdi πŸ™‚

    Looking at the plugin code, I’m guessing you have a problem with your MYSQL timezone settings… The plugin creates a query like:

    SELECT ID
    FROM wp_posts
    WHERE (
    (
    (
    post_date >0
    ) && ( post_date <= CURRENT_TIMESTAMP( ) )
    )
    OR (
    (
    post_date_gmt >0
    ) && ( post_date_gmt <= UTC_TIMESTAMP( ) )
    )
    )
    AND post_status = 'future'
    LIMIT 0 , 5

    If your mysql timezone is not specified correctly then the CURRENT_TIMESTAMP() function will come out wrong (it’s often defaulted to UTC). You can also just modify the code to replace CURRENT_TIMESTAMP() with '".date('Y-m-d H:i:s')."' or something of that effect so PHP is setting the timestamp rather than mysql.

    I wonder whether this shouldn’t be the default in the plugin? WP/php timezone settings are more likely to have been set by the user than mysql’s timezone.

    Plugin Contributor slangji

    (@slangji)

    Looking at the plugin code, I’m guessing you have a problem with your MYSQL timezone settings…

    Personally i have no problem with my code, or timezone. To date, only a few people, on 8000, i have reported this problem!

    If you have problems with timezones, with my plugin, you are free to make these changes, having the technical knowledge todo this, and i will be happy to include them in the plugin code, and give you the credit. πŸ˜‰

    Everything should work fine, with no other problems associated with these changes, under your full awareness and responsibility.

    For me, i’m not going to change the code shortly.

    This is true from now on, and recommend it to anyone, not to insist on this argument, since no changes will be made ​​to the code soon.

    Thanks πŸ™‚

    Hi sir, quick question.

    I am trying your plugin an noticed in my wp-cron dashboard the following
    “Anytime after November 7, 2011 @2:07 pm execute tasks
    Entry #8: publish_future_post X no action exists with this name” (which is a scheduled post in the future (in a couple of hours))

    Before I activated your plugin the X was a √.

    Can you explai me how it works? It seems like the future post is not being published anymore by wp-cron? Or am I misunderstanding it?

    Plugin Contributor slangji

    (@slangji)

    Or am I misunderstanding it?

    Yes!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: WP Missed Schedule Fix Failed Scheduled Future Posts] w-missed schedule posting posts too e’ is closed to new replies.