• Hi rachel and thanks for this great plugin.

    I’m having an issue and can’t figure how to solve it …
    It’s quite similar to this topic : https://ww.wp.xz.cn/support/topic/wp_set_object_terms-does-not-work-when-run-by-cron

    I’m using xmlrpc to publish posts. Once the post is published i’m retrieving the id and set the post terms. This is working fine when i load the script manually but doesn’t work when runned by cron.

    I’m NOT using wp-cron and i use my server ssh access to manage cron tasks ….

    $params = array(0,$username,$password,$content,true);
    if (!$client->query('wp.newPost', $params)) {
        die('Something went wrong - '.$client->getErrorCode().' : '.$client->getErrorMessage());
    } else {
    
    		$newid = $client->getResponse();
    		$starsexpo = explode(",",$video_stars);
    		$cpt_onomy->wp_set_post_terms($newid , $starsexpo, 'star', false);
    		echo "done!";
    
    		 //$count += 1;
    		}

    Sorry for my poor english 😉

    https://ww.wp.xz.cn/plugins/cpt-onomies/

The topic ‘Cron job issue’ is closed to new replies.