Appointment not created in order

Issue #1070 open
Valentina R created an issue

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):


Reported here, here, and here.

Comments (7)

  1. Valentina R 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.

  2. Željan Topić

    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

  3. Log in to comment