WordPress.org

Ready to get started?Download WordPress

Forums

Post via external application via mysql-db entries - future posts doesnt work (2 posts)

  1. zoidberg
    Member
    Posted 5 years ago #

    i want to do posts via an external c#-app. I do it via entries in the wp_posts table. It works fine with published posts, but not with future/scheduled posts.
    after the scheduled time is over, "schedule missing" is shown in the admin panel.

    can anyone help me?

    i think there is also no xmlrpc-c#-library which can do scheduled posts. xmlrpc is also very slow, so that i want to find a database driven solution

  2. zoidberg
    Member
    Posted 5 years ago #

    maybe i have to add in something in the wp_options table in the crons field?
    but it is very cryptic to me (also the unserialized version, because i am no php pro)... maybe someone can help me?

    the serialized crons field:
    a:3:{i:1241489320;a:2:{s:17:"wp_update_plugins";a:1:{s:32:"40cd750bba9870f18aada2478b24840a";a:3:{s:8:"schedule";s:10:"twicedaily";s:4:"args";a:0:{}s:8:"interval";i:43200;}}s:16:"wp_update_themes";a:1:{s:32:"40cd750bba9870f18aada2478b24840a";a:3:{s:8:"schedule";s:10:"twicedaily";s:4:"args";a:0:{}s:8:"interval";i:43200;}}}i:1251559860;a:1:{s:19:"publish_future_post";a:1:{s:32:"25ff942a860b1864dcdeded29d685809";a:2:{s:8:"schedule";b:0;s:4:"args";a:1:{i:0;s:2:"24";}}}}s:7:"version";i:2;}

    and the unserialized:
    array(3) { [1241489320]=> array(2) { ["wp_update_plugins"]=> array(1) { ["40cd750bba9870f18aada2478b24840a"]=> array(3) { ["schedule"]=> string(10) "twicedaily" ["args"]=> array(0) { } ["interval"]=> int(43200) } } ["wp_update_themes"]=> array(1) { ["40cd750bba9870f18aada2478b24840a"]=> array(3) { ["schedule"]=> string(10) "twicedaily" ["args"]=> array(0) { } ["interval"]=> int(43200) } } } [1251559860]=> array(1) { ["publish_future_post"]=> array(1) { ["25ff942a860b1864dcdeded29d685809"]=> array(2) { ["schedule"]=> bool(false) ["args"]=> array(1) { [0]=> string(2) "24" } } } } ["version"]=> int(2) } array(3) { [1241489320]=> array(2) { ["wp_update_plugins"]=> array(1) { ["40cd750bba9870f18aada2478b24840a"]=> array(3) { ["schedule"]=> string(10) "twicedaily" ["args"]=> array(0) { } ["interval"]=> int(43200) } } ["wp_update_themes"]=> array(1) { ["40cd750bba9870f18aada2478b24840a"]=> array(3) { ["schedule"]=> string(10) "twicedaily" ["args"]=> array(0) { } ["interval"]=> int(43200) } } } [1251559860]=> array(1) { ["publish_future_post"]=> array(1) { ["25ff942a860b1864dcdeded29d685809"]=> array(2) { ["schedule"]=> bool(false) ["args"]=> array(1) { [0]=> string(2) "24" } } } } ["version"]=> int(2) }

Topic Closed

This topic has been closed to new replies.

About this Topic