• Resolved Vadim

    (@vadikcoma)


    Hello, I’m having an issue with Trigger cron. Here are both crons:

    30 2 * * * /usr/bin/php-cgi /home/xxxxxxxxx.lv/public_html/wp-load.php import_key=cxGR4Q6…… import_id=1 action=trigger

    */2 * * * * /usr/bin/php-cgi /home/xxxxxxxxx.lv/public_html/wp-load.php import_key=cxGR4Q6……. import_id=1 action=processing

    Looking at server logs – cron is being triggered as it should. However trigger cron doesn’t run. If I trigger cron using web browser – it starts to work as it should and processing cron starts working right after I trigger cron from browser.

    Right now I’m using easycron.com, however I need to find solution how to run Trigger cron from my own server

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vadim

    (@vadikcoma)

    I tried every cron type I was able to find in support tickets:

    curl
    wget
    php
    php-cgi

    none of them work for Trigger cron. They don’t trigger import and because of that Processing cron is not triggered too

    Plugin Author WP All Import

    (@wpallimport)

    Hi @vadikcoma,

    If the trigger/processing scripts work when you fetch them in the browser, it means that the cron jobs on your server aren’t fetching them properly. One important thing to remember when using wget/curl is that you need to wrap the cron URLs in quotes, e.g.: https://d.pr/i/yVQJ4V.

    You should contact your web host and ask them to check the cron job configurations for you. They’ll be able to confirm if they’re set up right, if they’re firing when they’re supposed to, and what’s being returned when it runs.

    Let me know what you find out.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @vadikcoma,

    I’m marking this as resolved since we haven’t heard back in a while. Feel free to follow up here if you still have questions about this.

    Anyone else, please open up a new topic.

    Thread Starter Vadim

    (@vadikcoma)

    Oh, sorry. Yes, its solved. I will post our scripts for anyone looking for help.

    Yes – quotes did help

    curl -k –connect-timeout 7200 “https://domain.com/wp-load.php?import_key=XXX&import_id=1&action=trigger”

    /usr/bin/php-cgi /home/domain/web/domain.com/public_html/wp-load.php import_key=XXX import_id=1 action=processing

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trigger cron not running’ is closed to new replies.