Top WooCommerce & WordPress Plugins › Forums › Product XML Feeds for WooCommerce › Cron job issue
- Support forum for the Product XML Feeds for WooCommerce.
- This topic has 9 replies, 3 voices, and was last updated 2 years, 8 months ago by Hermo.
-
AuthorPosts
-
July 15, 2021 at 11:50 am #105808HermoGuest
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- This topic was modified 11 months, 2 weeks ago by Omar Dabbas.
July 15, 2021 at 8:47 pm #105809WPWhaleModeratorHi 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
July 16, 2021 at 6:38 am #105810HermoGuestHi Omar,
But is possible to execute this XML generation with cPanel Cron Job? I mean like i make this XML manual “Create now”?
Hermo
July 23, 2021 at 10:09 pm #105811WPWhaleModeratorHi 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
July 26, 2021 at 8:28 am #105812WPWhaleModeratorHi 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
August 12, 2021 at 7:50 am #105813HermoGuestHi
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.
August 13, 2021 at 2:23 pm #105814WPWhaleModeratorHi again Hermo,
Sorry but the issue isn’t clear, can you please elaborate a little more?
Omar
August 17, 2021 at 8:48 pm #105815Hermo SoodlaParticipantI 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>&1August 18, 2021 at 6:45 pm #105816WPWhaleModeratorHi 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
August 19, 2021 at 1:16 pm #105817HermoGuestEmail has been sent
-
AuthorPosts
- You must be logged in to reply to this topic.