cron issues
-
Hello,
is there a way to enable cron only for your plugin? because when setting wp_cron:true we get many errors in our log.
such like: 2023-03-20 16:31:01 UTC [apache][access_compat:error] [pid 72678] [client ****:****] AH01797: client denied by server configuration: /public_html/wp-cron.php, referer: /wp-cron.php?doing_wp_cron=1679329861.6904640197753906250000
-
Hi,
Thanks for using our plugin and reaching out to us. It is not possible to just enable the WP-cron for our plugin. You would need to enable it for your entire website in your wp-config.php
Hello,
Ok, I’ve activated the cron, but the processing is stuck at 22%.
We have the following errors showing:
On server side error log:
2023-03-21 08:31:26 UTC [apache][:warn] [pid 90204] [client 80.174.220.176:12148] Timeout waiting for output from CGI script */public_html/wp-admin/admin-ajax.php, referer: https://***.com/wp-admin/admin.php?page=woosea_manage_feed
On woocommerce error log:03-21-2023 @ 09:08:07 – < Start new QUERY >
03-21-2023 @ 09:08:07 –
Array (
[posts_per_page] => 136
[offset] => 0
[post_type] => Array
(
[0] => product
[1] => product_variation
)
[post_status] => publish
[fields] => ids
[no_found_rows] => 1
)
03-21-2023 @ 09:08:07 – < START new QUERY >
03-21-2023 @ 09:30:05 – < Start new QUERY >
03-21-2023 @ 09:30:05 – Array
(
[posts_per_page] => 136
[offset] => 136
[post_type] => Array
(
[0] => product
[1] => product_variation
)
[post_status] => publish
[fields] => ids
[no_found_rows] => 1
)
etc…Hi,
The log you pasted is the debugging log of our plugin. Can you also share the WooCommerce fatal error log content of today? This is where you can find that log: https://woocommerce.com/document/finding-php-error-logs/
Hello,
2023-03-21T08:27:51+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012 Stack trace: 0 /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php(1546): WC_PB_Cart->set_bundle_container_cart_item(Array) 1 /public_html/wp-includes/class-wp-hook.php(308): WC_PB_Cart->add_cart_item_filter(Array, '752b307a2cd1244…') 2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1260): apply_filters('woocommerce_add…', Array, '752b307a2cd1244…') 4 /public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php(1048): WC_Cart->add_to_cart(25149, 1) 5 /home/customer/www/orig in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php on line 1012 2023-03-21T08:30:46+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012 Stack trace: 0 /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php(1546): WC_PB_Cart->set_bundle_container_cart_item(Array) 1 /public_html/wp-includes/class-wp-hook.php(308): WC_PB_Cart->add_cart_item_filter(Array, '752b307a2cd1244…') 2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1260): apply_filters('woocommerce_add…', Array, '752b307a2cd1244…') 4 /public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php(1048): WC_Cart->add_to_cart(25149, 1) 5 /home/customer/www/orig in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php on line 1012 2023-03-21T08:32:04+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012 Stack trace: 0 /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php(1546): WC_PB_Cart->set_bundle_container_cart_item(Array) 1 /public_html/wp-includes/class-wp-hook.php(308): WC_PB_Cart->add_cart_item_filter(Array, '752b307a2cd1244…') 2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1260): apply_filters('woocommerce_add…', Array, '752b307a2cd1244…') 4 /public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php(1048): WC_Cart->add_to_cart(25149, 1) 5 /home/customer/www/orig in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php on line 1012 2023-03-21T09:20:13+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012 Stack trace: 0 /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php(1546): WC_PB_Cart->set_bundle_container_cart_item(Array) 1 /public_html/wp-includes/class-wp-hook.php(308): WC_PB_Cart->add_cart_item_filter(Array, '752b307a2cd1244…') 2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1260): apply_filters('woocommerce_add…', Array, '752b307a2cd1244…') 4 /public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php(1048): WC_Cart->add_to_cart(25149, 1) 5 /home/customer/www/orig in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php on line 1012 2023-03-21T11:01:58+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012 Stack trace: 0 /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php(1546): WC_PB_Cart->set_bundle_container_cart_item(Array) 1 /public_html/wp-includes/class-wp-hook.php(308): WC_PB_Cart->add_cart_item_filter(Array, '752b307a2cd1244…') 2 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) 3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1260): apply_filters('woocommerce_add…', Array, '752b307a2cd1244…') 4 /public_html/wp-content/plugins/woo-product-feed-pro/classes/class-get-products.php(1048): WC_Cart->add_to_cart(25149, 1) 5 /home/customer/www/orig dans /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php sur la ligne 1012
Hi,
Thanks for this. The issue at hand seems to be happening when our plugin is trying to add a product to your cart to calculate the shipping costs. It is encountering an error when trying to add a bundled product according to the error log: “/woocommerce-product-bundles/”. What bundled product plugin are you using?
we’re using WooCommerce Product Bundles plugin
There are several WooCommerce Product Bundle plugins out there, which one exactly are you using. Can you provide us with an URL to it?
its the one from woocommerce official site:
https://woocommerce.com/products/product-bundles/?utm_source=google&utm_medium=cpc&utm_campaign=marketplace_search_brand_row&utm_content=woocommerce_+product_+bundlesOk, that should work. You probably didn’t price the bundled product itself, in that case the price in the feed will also be 0.00.
We have bundles that uses the products price inside.
But the problem we have is not that the price is 0, is that we have the feed processing.
Well somehow the problem (the feed not processing) is related to the bundled product plugin. When the feed wants to update it is encountering this error:
2023-03-21T11:01:58+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Variation::set_object_context() in /public_html/wp-content/plugins/woocommerce-product-bundles/includes/class-wc-pb-cart.php:1012
So it is probably best you reach out to their support team asking what could be causing the issue at hand.
Assuming the issue at hand has been resolved or our support is no longer required we will close this topic for housekeeping reasons.
- The topic ‘cron issues’ is closed to new replies.