Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Subscriptions › WC Subscriptions "Validate email" function not working when WPML is active
Tagged: Email verifications
- This topic has 2 replies, 3 voices, and was last updated 3 years, 10 months ago by Sushobhan.
- AuthorPosts
- April 4, 2020 at 6:15 am #115208hansa.tiendaParticipant
Hi ,
I Have WPML active along with WPML Woocommerce Multilingual.When the plugin “WPML Woocommerce Multilingual” is active , Im unable to use the “Validate email” for subscrition option.
When i put an email in the subscription form the “code sending” fails and i get the following fatal error in the logs:
2020-04-04T00:15:35+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on int in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php:395
Stack trace:
#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php(375): WCML_Emails->get_email_translated_string('subject', Object(WCFMvm_Email_Email_verification), NULL)
#1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(289): WCML_Emails->filter_emails_strings('[{site_title}] ...', Object(WCFMvm_Email_Email_verification), '[{site_title}] ...', 'subject')
#2 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters('[{site_title}] ...', Array)
#3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(490): apply_filters('woocommerce_ema...', '[{site_title}] ...', Object(WCFMvm_Email_Email_verification), '[{site_title}] ...', 'subject', '[{site_title}] ...')
#4 /opt/bitnami/apps/wordpress/htdocs/wp en /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php en la línea 395
As soon as i disable the WPML Woocommerce multilingual the form starts working normally.
It seems that the language is not being passed correctly for some reason to the underlaying WPML function.Thanks
- April 5, 2020 at 10:33 am #115542WCFM ForumKeymaster
Hi,
Please go to wp-admin -> WooCommerce -> Setting -> Emails -> WCFM – Email Verification – please check is this properly setup, specially subject and heading? https://ibb.co/0FS3r0f
Thank You
- May 14, 2020 at 8:55 am #130780SushobhanKeymaster
Hello,
The same bug is discussed here-
https://wpml.org/forums/topic/uncaught-error-call-to-a-member-function-get_id-on-array-in-class-wcml-emails-2/
and
https://wpml.org/forums/topic/uncaught-error-call-to-a-member-function-get_id-on-array-in-class-wcml-emails/#post-5835849
As per WPML-Please note, this issue is fixed and the fix will be included in the upcoming version of the WooCommerce Multilingual 4.9.0.
If version 4.9.0 is not released yet, you can try the first link, there they have provided a temporary fix.
Looking forward to helping you.
Thank You!
- AuthorPosts
- You must be logged in to reply to this topic.