Remove a specific role when order status is changed to completed (but keep all other roles). Can you or your plugin help please?
]]>If I update from PHP version 7.4 to 8.0 or 8.1 at my hosting, I get an error saying:
A critical error has occurred on this site. Check your site administrator email inbox for instructions.
This happens when the ‘PDF Invoicing Module’ in de Booster plugin is activated, and I put any status in the ‘Invoice’ box. Then, when I change the status of a Woocommerce order to ‘Completed’.
See: https://ibb.co/dbHYTkp
In this ‘PDF Invoicing Module’ I have the following settings:
Invoice: Create on Order Status Processing + Manually
If I leave this box empty, the error is gone.
In this mail, it says:
Hello!
Since WordPress 5.2, there is a built-in feature that recognizes when a plugin or theme is causing a fatal error on your site and notifies you with this automatic email.
In this case, WordPress has found a problem with one of your plugins: Booster Plus for WooCommerce.
First, visit your site (https://www.***.nl) and see if there are any visible problems. Then visit the page where the error was found (https://www.***.nl/wp-admin/post.php) and see if there are any visible problems.
Please contact your host for assistance in further investigating this issue.
In case your site appears to be broken, and you can’t access the dashboard normally, WordPress now has a special “recovery mode”. This allows you to log in to your dashboard in a secure way to further investigate the problem.
https://www.***.nl/wp-login.php?action=enter_recovery_mode&rm_token=***
To keep your site safe, this link will expire in 1 day. Don’t worry about that, a new link will be sent to you if the problem reoccurs after the link has expired.
If you need help with this issue, you may be asked for the following information:
WordPress version 6.1.1
Active theme: Electro New 1/16/2023 (version 1.0) Current plugin: Booster Plus for WooCommerce (version 6.0.0) PHP version 8.1.9
Error details
An error of type E_ERROR was caused on line number 18255 of the file
/home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php. Foutmelding: Uncaught TypeError: array_push(): Argument #1 ($array) must be of type array, null given in /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php:18255
Stack trace:
#0 /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php(18255): array_push()
#1 /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php(5859): TCPDF->writeHTML()
#2 /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/lib/tcpdf/tcpdf.php(17161): TCPDF->MultiCell()
#3 /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/classes/class-wcj-pdf-invoice.php(261): TCPDF->writeHTMLCell()
#4 /home/####/domains/####.nl/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/pdf-invoices/submodules/class-wcj-pdf-invoicing-emails.php(90): WCJ_PDF_Invoice->get_pdf()
#5 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(310): WCJ_PDF_Invoicing_Emails->add_pdf_invoice_email_attachment()
#6 /home/####/domains/####.nl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#7 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(461): apply_filters()
#8 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-completed-order.php(69): WC_Email->get_attachments()
#9 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(308): WC_Email_Customer_Completed_Order->trigger()
#10 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#11 /home/####/domains/####.nl/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
#12 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array()
#13 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(308): WC_Emails::send_transactional_email()
#14 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#15 /home/####/domains/####.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(387): do_action()
#17 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(245): WC_Order->status_transition()
#18 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(699): WC_Order->save()
#19 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Data::save()
#20 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#21 /home/####/domains/####.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#22 /home/####/domains/####.nl/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action()
#23 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes()
#24 /home/####/domains/####.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#25 /home/####/domains/####.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#26 /home/####/domains/####.nl/public_html/wp-includes/post.php(4717): do_action()
#27 /home/####/domains/####.nl/public_html/wp-includes/post.php(4819): wp_insert_post()
#28 /home/####/domains/####.nl/public_html/wp-admin/includes/post.php(426): wp_update_post()
#29 /home/####/domains/####.nl/public_html/wp-admin/post.php(227): edit_post()
#30 {main}
thrown
With PHP version 8.1 activated, I have also tested it with activating theme Twenty Twenty-Three and deactivated all other plugins but your Booster plugin and Woocommerce. And the problem is still there. When I activate PHP 7.4. the problem is gone. So it is really the Booster plugin.
My hosting told me it is your booster plugin that is not PHP 8.1 ready…
Can you fix this problem?
I hope you will.
Razorpay successful payment note is added twice, therefore changing the status twice.
Please, I need a solution.
Thanks.
]]>Is the on your end or woocommerce?
]]>F.ex. the order_status is changed to “processing”, the invoice_status is changed as well. How can we stop this behaviour?
]]>Is there a setting are plugin that will enable an automatic status change once a donation has been received/processed via Stripe.
I was testing a form and noticed the status was showing “pending” after I completed my donation.
Is there a way I can set this to change automatically?
Thanks,
Durwin
I found this action in some other forum post and like to use it with packing slip.
Two questions:
Is it possible to use the order id inside my custom function?
And how to decide which doc type is used?
add_action( 'wpo_wcpdf_created_manually', 'change_to_working_status');
function change_to_working_status() {
global $order_id;
if ( ! $order_id )
return;
$order = wc_get_order( $order_id );
if( $order->has_status( 'processing' ) ) {
$order->update_status( 'working' );
}
}
]]>I wanted to ask, is it possible that the reminder is sent after a different order status other than completed?
For example, order is finished when a order status is Delivered instead of Completed. I want to send reminders after 7 days of status Delivered instead of completed.
Is their any hook through which I can change it? Or any other way?
Your help would be much appriciated.
Thanks.
]]>I have a question about place order and status changing.
After when I use a gift card and the cart total is: 0. Then I would like the order status will change to order completed, not to processing.
Can you help me with this?
Thx
]]>All the above notifications are activated in the “Notifications via Email” section (Woocommerce>Settings>Emails).
I would be happy to receive your guidance.
]]>