Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Shekhar Bhandari 8 months, 1 week ago.

Assigned support staff: Shekhar Bhandari.

Author Posts
June 17, 2019 at 3:05 pm #4036443


I am trying to:

Turn off translation of WooCommerce Bookings emails as they aren't needed.

Link to a page where the issue can be seen:

These are emails so not on the visible website

I expected to see:


Instead, I got:

Error Details
An error of type E_ERROR was caused in line 2467 of the file /var/www/vhosts/ Error message: Uncaught Error: Call to a member function get_id() on bool in /var/www/vhosts/
Stack trace:
#0 /var/www/vhosts/ WCML_Bookings->translate_booking_cancelled_email_texts(112084)
#1 /var/www/vhosts/ WP_Hook->apply_filters('', Array)
#2 /var/www/vhosts/ WP_Hook->do_action(Array)
#3 /var/www/vhosts/ do_action_ref_array('woocommerce_boo...', Array)
#4 /var/www/vhosts/ WC_Emails::send_transactional_email(Array, Object(WC_Booking))
#5 /var/www/vhosts/ WP_Hoo

June 18, 2019 at 9:03 am #4041685

Shekhar Bhandari

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Welcome to WPML support. I'd be assisting you further on this issue.

We recently released new versions of WPML plugins with fixes and improvements so could you please update the plugin to the latest version and let me know if this helps?


+ Make a backup (both files and database) for your site before updating/proceeding anything (Always a good practice!). You can use a plugin for this if you like. I often use the Duplicator plugin for this purpose. See:

Also, I assume the issue is happening with only WooCommerce Booking Plugin, correct?

Look forward to your reply.


The topic ‘[Closed] translate_booking_cancelled_email_texts problem’ is closed to new replies.