Cron job issue

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #105808
    blankHermo
    Guest

    I have a little problem with Cron.
    I have 20k +/- 300 products and cron wont work with this ammount.
    If i make XML manual (with “Creat now”) then all works.

    Is possible to this plugin wont accept this large ammount of products?

    Some settings:

    Block size for products query => 612
    PHP memory limit => 0
    PHP time limit => 0

    #105809
    blankWPWhale
    Moderator

    Hi Hermo,

    Since it works with manual (Create now), it seems like in the next schedule, a previous cron was still running which caused the issue.

    In such enormous number of products, I don’t think the cron job will run smoothly, maybe you can ask the hosting provider for server usage when you run a job and check logs?

    Omar

    #105810
    blankHermo
    Guest

    Hi Omar,

    But is possible to execute this XML generation with cPanel Cron Job? I mean like i make this XML manual “Create now”?

    Hermo

    #105811
    blankWPWhale
    Moderator

    Hi Hermo,

    Currently the job is built-in within the plugin, but I can create a file to run the job manually (so you can handle it as a cron job), will do this in the next update and let you know.

    Omar

    #105812
    blankWPWhale
    Moderator

    Hi Hermo,

    As promised, I included a section that will explain how to run the XML generation as a cron job in the last update, you can find it under the schedule section.

    Please test it and let me know, and if you found our support & plugin useful, it would be great if you can leave us a review.

    Omar

    #105813
    blankHermo
    Guest

    Hi

    What means this? /dev/null

    I can see in debug to code works (PHP Notice: Undefined index: sum_with in …. class-alg-products-shortcodes.php on line 556) but no output file update.

    #105814
    blankWPWhale
    Moderator

    Hi again Hermo,

    Sorry but the issue isn’t clear, can you please elaborate a little more?

    Omar

    #105815
    blankHermo Soodla
    Participant

    I have turned on debug on my page to see errors. And if i run your plugin “Manual Cron Job Command” then i can see in debug log errors:
    [17-Aug-2021 20:40:00 UTC] PHP Notice: Undefined index: sum_with in /home4/MYDOMAIN/public_html/wp-content/plugins/product-xml-feeds-for-woocommerce-pro/includes/shortcodes/class-alg-products-shortcodes.php on line 556.
    But if i look *.xml file then i can not see update.

    And anohter question:
    What mean this /dev/null in end of command?
    ../admin-ajax.php?action=generate_xml_external&alg_create_products_xml=1 >/dev/null 2>&1

    #105816
    blankWPWhale
    Moderator

    Hi again,

    For the /dev/null, it means “Don’t generated any error file” because Linux always generates file in root, if there are any buffer output.

    For the first part of your post, this is a notice and not an error, I will handle it in the next update, but if job is not running, you either can provide us with access to check, or see job logs if there are any errors (on your hosting control panel).

    Please reach us at [email protected] and we will be glad to help you further.

    Omar

    #105817
    blankHermo
    Guest

    Email has been sent

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.