• Resolved shagdirty

    (@shagdirty)


    The Cron Import function doesn’t work for me. The manual import works perfectly but when I try to set the Cron Import to automatically import a csv hourly, it never runs. More info…

    – I have tested verified file paths on both the hosting server and a remote server
    – I have it set to run hourly
    – I have the “activate periodical import” box checked
    – I visit the site several times within the hour or two in order to run WP Cron (since WP Cron requires site visits right?)
    – The same csv I’m trying to import via cron job, works perfectly when manually imported.
    – I’ve tried this on multiple servers. (WP Engine, Amazon servers, etc)
    – Searched this forum, google and the docs but no answers stood out.

    Any direction or thoughts are much appreciated.

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @shagdirty,

    Good morning, install WP-Crontrol and look there when the execution has run the last time.

    Thread Starter shagdirty

    (@shagdirty)

    Thanks for the tip @carazo. I installed that plugin and looks like default WP ‘cron’ wasn’t running for whatever reason (which I didn’t try to figure out). Did some digging and adding this to the wp-config.php file seems to have solved the issues on at least one dev server (WP Engine).

    define('ALTERNATE_WP_CRON', true);

    Might be worth adding a note in the docs about it.

    Still waiting to test other servers but fingers crossed it works there too. Once I do that, I’ll close this string and mark as solved.

    • This reply was modified 6 years, 9 months ago by shagdirty.
    Plugin Author Javier Carazo

    (@carazo)

    Thanks for your answer @shagdirty.

    I didn’t know about it but I have just read in the Codex:

    Alternative Cron
    Use this, for example, if scheduled posts are not getting published. According to Otto’s forum explanation, “this alternate method uses a redirection approach, which makes the users browser get a redirect when the cron needs to run, so that they come back to the site immediately while cron continues to run in the connection they just dropped. This method is a bit iffy sometimes, which is why it’s not the default.”

    define( ‘ALTERNATE_WP_CRON’, true );

    I prefer not including it in “Documentation” because in a very long task in the cron it can be annoying.

    Problems from cron or from mail sending are not problems of the plugin really.

    Thanks for all, please give us a little donation or write a good review to help us to continue working with it.

    Javier

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cron Import Not Working’ is closed to new replies.