Recently working for wordpress website with woocommerce suddenly scheduled action are not working, orders not captured in analytics, order conformation mail not sending to users of order and their related mail to users so debug the site to find the issue where it actually cause this issue.
While debugging found the issue where it was actually causing the issue
in wpform hook schedule actions
wpforms_admin_notifications_update
'tasks_meta_id' => 4
attched the log file
2024-01-25 21:23:01 +0000
action created
2024-02-18 08:50:05 +0000
action started via Async Request
2024-02-18 08:50:05 +0000
unexpected shutdown: PHP Fatal error Uncaught Error: Unknown named parameter $tasks_meta_id in /home/aa/public_html/wp-includes/class-wp-hook.php:324
Stack trace:
#0 /home/aa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#1 /home/aa/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#2 /home/aa/public_html/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/actions/ActionScheduler_Action.php(22): do_action_ref_array('wpforms_admin_n...', Array)
#3 /home/aa/public_html/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()
#4 /home/aa/public_html/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php(162): ActionScheduler_Abstract_QueueRunner->process_action(114943, 'Async Request')
#5 /home/aa/public_html/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch(25, 'Async Request')
#6 /home/aa/public_html/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run('Async Request')
#7 /home/aa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /home/aa/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/aa/public_html/wp-content/plugins/woocommerce-smart-coupons/includes/libraries/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php(53): do_action('action_schedule...', 'Async Request')
#10 /home/aa/public_html/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php(147): ActionScheduler_AsyncRequest_QueueRunner->handle()
#11 /home/aa/public_html/wp-includes/class-wp-hook.php(324): WP_Async_Request->maybe_handle('')
#12 /home/aa/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #13 /home/adamsarms/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#14 /home/aa/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_as_asyn...')
#15 {main} thrown in /home/aa/public_html/wp-includes/class-wp-hook.php on line 324
Scheduled action works fine suddenly its not works we dont update any plugins, php version(current – 8.1.27) , theme.
Read the action scheduler troubleshooting guide but here is not the found the solution for this problem.
Pls help me to solve the issue it lot helpful for me.
Thanks.
I’m trying to test something using the plugin but I don’t believe it’s possible.
Soon, we’ll be selling ‘patterns’ at 50% off using a code (pattern50) to automatically apply at the cart that reduces the price by 50%.
BUT, we’d also like to give the customer the option of a further 10% off ‘yarn’, when 5 patterns are added to the cart.
I’ve tested a few things, but cannot see if this is really possible.
I guess there are 2 coupons that would need to be at work, one to apply the 50% discount on patterns, but another that knows when 5 patterns have been added to the cart that offers a 10% discount on any ‘yarn’ purchase added to the cart.
The issue is, the ‘patterns’ must remain discounted at 50%, but then any ‘yarn’ added to the cart after ‘5 patterns’ have been added to the cart are discounted ‘10%’, without affecting the 50% off patterns.
Any thoughts?
Many thanks,
Stefan
Please, assist me on this as soon as possible. Thank you.
]]>Hope you can help me with this issue. I used Loco Translate to translate my plug-in ‘WooCommerce Smart Coupons’ developed by Store Apps. I used a google API key.
Works wonderfully: when I preview the mail with the store credit I like to send everything is translated.
However, when I actually send this email, parts seem to be untranslated. I can’t figure out why!
Some more backstory:
– Why it might be partly translated: I did do a manual translation a few weeks back, but I quit and looked for another option when it took me too much time. It looks like the words that I already changed manually are translated but not the new Google auto translation I added. I clicked save and sync in the loco translate plug-in after adding the new google translation. These new translations are visible in the e-mail preview. I also purged my cache.
Keep in mind that I am not an actual web developer but a storeowner, it might be something obvious to you but not to me. Google helps me out 90% of the time, but this time I need you brainiacs!
Looking forward to your reply
]]>In the documentation, it says:
“In the case of guest checkout, the previous orders will be checked based on the billing email address entered by the user.”
Is it possible to check billing or shipping address also to ensure it is not used multiple times?
]]>Do you have any plans to support WooCommerce Smart Coupons?
Thanks,
Richard
We’re using WooCommerce (2.6.4) and WooCommerce Smart Coupons (3.1.2 – we encountered a fatal error when we updated to 3.1.3 so we reverted back).
Scenario:
1. We created a Store Credit via Smart Coupon that can only be used for a specific product category (or class for our client) called Yoga, ex: https://i.imgur.com/gJE9bJf.png
2. We added 2 types of class into the cart, Yoga and Pilates, ex: https://i.imgur.com/d4Inpqz.png
3. When the Store Credit is applied, the Cart total value displays 0 even though you still need to pay for the Pilates class as seen here: https://i.imgur.com/KaKQQpX.png
Hope you guys can help why the total value is incorrect.
Thank you.
]]>Thanks again for your awesome plugin and your very quick replies.
I am using WooCommerce Smart Coupons and I’ve discovered a conflict between your plug-in and that one.
On the check-out page Smart Coupons has a client-side area with two radio buttons. Clicking on “Gift Coupons to Someone Else” is supposed to open a second window that allows the customer to enter email addresses and a message to intended recipients.
When your plugin is active, that field does not display. When your plugin is deactivated, it works as intended.
I wrote through the WooCommerce support area for help with the SC extension and so far have been less then impressed. I did just discover the conflict between your plugins and will report this to them as well and see if they can be of more help.
Would you be able to look into this? Both plugins are very popular and I would hope to be able to use both.
Thanks again for your awesome work. I am happy to provide a link privately or a temporary admin, please just let me know which email to respond to.
https://www.ads-software.com/plugins/wc-fields-factory/
]]>I just wanted to let you (and others) know that the plugin currently breaks, and has been breaking, support with some other extensions, the most popular one being woocommerce-smart-coupons.
Around lines 2537 to 2543 in products.class.php function woocommerce_calculate_totals() : you can comment all the following lines to resolve the issue
if(!is_null($tr_product_id)){
$cart_item_data = (array) apply_filters( 'woocommerce_add_cart_item_data', array(), $cart->cart_contents[$key]['product_id'], $cart->cart_contents[$key]['variation_id']);
$new_key = $woocommerce->cart->generate_cart_id( $cart->cart_contents[$key]['product_id'], $cart->cart_contents[$key]['variation_id'], $cart->cart_contents[$key]['variation'], $cart_item_data );
$cart->cart_contents = apply_filters('wcml_update_cart_contents_lang_switch',$cart->cart_contents,$key, $new_key,$current_language);
$new_cart_data[$new_key] = $cart->cart_contents[$key];
$new_cart_data = apply_filters('wcml_cart_contents', $new_cart_data, $cart->cart_contents,$key, $new_key);
}
$cart->cart_contents = $new_cart_data;
The following lines seem to do absolutely nothing but generate a new cart ID and WooCommerce doesn’t recognize the cart anymore and empties it // empties the cart object associated to that ID. It might be a cross love/hate relationship between wpml, smart coupons and wpml multilingual, but I’ve pin pointed the bug to be that part since it seems to change absolutely nothing to generate a new id or not. Maybe it should be there?
Anyways, I hope this helps the many people I’ve seen having issues with both plugins installed. And @author: I would really like to hear what those few lines actually accomplish to know if removing them is the real best solution.
Regards,
David
https://www.ads-software.com/plugins/woocommerce-multilingual/
]]>Is it something in the payment gateway plugin or woocommerce or what? that causes this and how can it be fixed?
https://www.ads-software.com/plugins/woocommerce/
]]>