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 3 months, 4 weeks ago.

Assigned support staff: Shekhar Bhandari.

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

daveM-12

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:

Nothing

Instead, I got:

Error Details
=============
An error of type E_ERROR was caused in line 2467 of the file /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-content/plugins/woocommerce-multilingual/compatibility/class-wcml-bookings.php. Error message: Uncaught Error: Call to a member function get_id() on bool in /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-content/plugins/woocommerce-multilingual/compatibility/class-wcml-bookings.php:2467
Stack trace:
#0 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-includes/class-wp-hook.php(288): WCML_Bookings->translate_booking_cancelled_email_texts(112084)
#1 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-includes/plugin.php(531): WP_Hook->do_action(Array)
#3 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-emails.php(165): do_action_ref_array('woocommerce_boo...', Array)
#4 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-includes/class-wp-hook.php(286): WC_Emails::send_transactional_email(Array, Object(WC_Booking))
#5 /var/www/vhosts/adventureparcsnowdonia.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hoo

June 18, 2019 at 9:03 am #4041685

Shekhar Bhandari
Supporter

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?

NOTE:

+ 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: http://wordpress.org/plugins/duplicator/

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

Look forward to your reply.

Thanks

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