Appointment not created in order
3 people reported this in the past 5 days. 2 same examples, one a bit different.
2 examples with the same error in edit-order and no appointment in backend:
An error of type E_ERROR was caused in line 36 of the file /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce-appointments/templates/order/admin/appointment-display.php. Error message: Uncaught Error: Call to a member function get_id() on bool in /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce-appointments/templates/order/admin/appointment-display.php:36
Stack trace:
#0 /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce-appointments/includes/admin/class-wc-appointments-admin.php(487): wc_get_template(‘order/admin/app…’, Array, ”, ‘/home/customer/…’)
#2 /home/customer/www/johnsansomphoto.com/public_html/wp-includes/class-wp-hook.php(310): WC_Appointments_Admin->appointment_display(404, Object(WC_Order_Item_Product), Object(WC_Product_Appointment))
#3 /home/customer/www/johnsansomphoto.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#4 /home/customer/www/johnsansomphoto.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php(43): do_action(‘woocommerce_bef…’, 404, Object(WC_Order_Item_Product), Object(WC_Product_Appointment))
#6 /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(73): include(‘/home/customer/…’)
#7 /home/customer/www/johnsansomphoto.com/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(40): include(‘/home/customer/…’)
#8 /home/customer/www/johnsansomphoto.com/public_html/wp-admin/includes/template.php(1443): WC_Meta_Box_Order_Items::output(Object(WP_Post), Array)
#9 /home/customer/www/johnsansomphoto.com/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#10 /home/customer/www/johnsansomphoto.com/public_html/wp-admin/post.php(206): require(‘/home/customer/…’)
#11 {main}
thrown
And the other user has no error but shows like this (it’s an appointable product - in order notes you can see the first note with the appointment ID):
Comments (9)
-
reporter -
reporter All users have shared their plugin list and they have no plugin in common. 3 out of 4 have the Yoast SEO plugin, but not the fourth (the one that has been having issues for the past 6 months).
They have different server setups and use different payment methods.
Any chance this happens because of server overload or something similar? Since we have 4 reported cases, it’s not a light bug to just ignore. But we have no info on how to reproduce it because it happens randomly.
-
reporter -
reporter It keeps happening. here is an error log: https://bookingwp.com/wp-content/uploads/2023/09/php_errors.txt
for this order:
-
reporter another report here.
-
- changed status to resolved
Most users are probably using outdated custom templates they copied inside their theme as errors cannot be traced to current code lines. Added additional check for gCal server load with 4.18.0
-
reporter - changed status to open
This has happened again to a customer that had this issue in the past.
He recently switched to using HPOS but I was not able to reproduce it with the same settings. He shared the error log - it had errors at the time of the order creation: https://bookingwp.com/forums/topic/new-order-for-appointable-product-but-no-appointment-included/#post-849962
-
reporter Another report. It happens randomly. The only payment option is Stripe.
For example, it happened in Jan 2024 (prev plugin version) and a few days ago (latest version).
There are no custom templates in child theme. Parent theme is Kadence.
There is nothing in the logs.
Example of order details and customer email.
-
- changed status to resolved
Added additional checks with 4.20.1
- Log in to comment
Another report from 6 months ago (v 4.15.0).