• Resolved Jean R.

    (@efbi)


    Hello, I use your plugin to download a XML file from URL
    I setup my crontab with trigger (every day) & processing each 2 minutes and even if the processing is running each 2 minutes (in log), the import doesn’t work..

    When I see my cron running the processing script, in “Manager Import” I see last activity 4 minutes ago for example when the script just run..

    • This topic was modified 4 years, 5 months ago by Jean R..
    • This topic was modified 4 years, 5 months ago by Jean R..
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @efbi

    When I see my cron running the processing script, in “Manager Import” I see last activity 4 minutes ago for example when the script just run..

    This likely means that the processing script is timing out (i.e. being terminated by your server) before it can complete an iteration. Please try these steps:

    • At All Import -> Settings set the “Cron Processing Time Limit” to 59.
    • At Manage Imports -> Import Settings set the import’s records per iteration to 1: https://d.pr/i/Vakkd3.
    • Test the cron processing script in your browser (visit the URL) to see if it completes correctly.

    If it doesn’t complete correctly in your browser after these steps, ask your web host to review the error logs on your server for any relevant log entries explaining the termination.

    Let us know what you find.

    Thread Starter Jean R.

    (@efbi)

    Hello, yes sorry I finally find the problem.
    For people for try to trigger by cron :

    Maybe the curl or wget with cron doesn’t work because you need send headers with it.
    Create a php file and make a curl with php Like this :

    <?php 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://YOUR_URL/wp-load.php?import_key=YOUR_KEY&import_id=1&action=processing");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
    $output = curl_exec($ch);
    curl_close($ch);

    Then configure your cron to launch this file ! Same for trigger action

    I had to do it with php cause direct curl with cron doesn’t work for me.

    • This reply was modified 4 years, 5 months ago by Jean R..
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual Scheduling doesn’t fire processing import’ is closed to new replies.