David Garcia Watkins
Forum Replies Created
-
It looks like you don’t have the latest version of WooCommerce Bookings (right now its 2.0.4) because there is no code in line 49. Could you first try updating to the latest version of WooCommerce Bookings?
- This reply was modified 1 year, 4 months ago by David Garcia Watkins.
Hi @grafica789
We are just about to release an update that covers several nuances with woocommerce-multilingual and woocommerce-bookings, so this is perfect timing to get it resolved. First of all, I need to replicate the issue. To do so, can you let me know if you site is using WPML or not?
Thanks
I saw the same error creating a product with wp-cli and reported here:
https://github.com/woocommerce/woocommerce/issues/38996
I hope it helps
@caineuk if you could confirm it works that would be great.
Thanks!
We are in the process of releasing version 0.3.5 that fixes this problem. Keep an eye out for the update.
If you have further issues, please open a support thread at wpml.org
Never mind, I found out what it is. The missing class is part of the “Pro” version and I am almost sure you have the “Lite” version.
I will make sure we release an update asap
Thanks for the report @caineuk
Could you let me know how its killing your site? Some steps to reproduce and most important the error message.
It is indeed an old leftover as Pierre mentioned.
If it’s blocking you, you can safely remove line 70 from inc/class-wcml-store-pages.php
Our next bugfix release 5.0.1 (most probably next week) will address the issue.
That one should have been fixed in version 4.12.2.
Which version are you running?
It is the next ticket I will work on.
@jenzgaard are you working with variable products?
We just got a bug report that only happens with variable products. It looks quite similar to what you are experiencing.
This was previously reported and we released a fix in WooCommerce Multilingual 4.12.
You can find more info and instructions to update over here:
We have added support for WooCommerce Analytics in WooCommerce Multilingual 4.12. We plan to release a beta by the end of August if all goes as expected. Your problems should be fixed as soon as you update.
If you still have issues after updating to woocommerce-multilingual 4.12 I’d recommend that you open a support ticket at https://wpml.org/forums/forum/english-support/
Forum: Plugins
In reply to: [WP Better Permalinks] WPML compatibilityHi Mateusz, thats great news.
I setup a sandbox similar to the last one:
https://outstanding-goldfinch.w5.wpsandbox.pro?upass=7Z2llgH64TqHLet me know if you need anything else.
Forum: Plugins
In reply to: [WPC Custom Related Products for WooCommerce] WPML compatibilityHi,
This is David from the WPML compatibility team. We recently had a bug report in our forum about using Custom Related Products together with WPML.
We put together a small snippet that translates the related product ids on the fly to make it work:
add_action( 'init', 'wcrp_wpml_loaded' ); function wcrp_wpml_loaded() { if ( apply_filters( 'wpml_setting', false, 'setup_complete' ) ) { add_filter( 'get_post_metadata', 'wcrp_translate_related_ids', 10, 4 ); } } function wcrp_translate_related_ids( $value, $post_id, $meta_key, $single ) { global $wpdb; if ( '_wcrp_related_ids' === $meta_key ) { $ids = maybe_unserialize( $wpdb->get_var( $wpdb->prepare( "SELECT meta_value FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s", $post_id, $meta_key ) ) ); $value = array(); foreach ( $ids as $id ) { $value[] = apply_filters( 'wpml_object_id', $id, get_post_type( $id ), true ); } $value = array( $value ); } return $value; }
If you have a child theme, you can place this code in functions.php in the child theme. This is the quickest way.
But ideally, the plugin author can include it directly in the plugin.
Best
David