Forum Replies Created
- AuthorPosts
- Bernard PrinceParticipant
I finally got the solution in WPML forums: https://wpml.org/forums/topic/fatal-error-on-class-wcml-emailsdotphp-line-395/
Thanks your your help!
Bernard PrinceParticipantHi,
Here’s the log:2020-05-13T10:48:37+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on integer in /home/bprince/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php:395
Stack trace:
#0 /home/bprince/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php(375): WCML_Emails->get_email_translated_string(‘subject’, Object(WCFM_Email_New_enquiry), NULL)
#1 /home/bprince/public_html/wp-includes/class-wp-hook.php(289): WCML_Emails->filter_emails_strings(‘[{site_title}] …’, Object(WCFM_Email_New_enquiry), ‘[{site_title}] …’, ‘subject’)
#2 /home/bprince/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘[{site_title}] …’, Array)
#3 /home/bprince/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(490): apply_filters(‘woocommerce_ema…’, ‘[{site_title}] …’, Object(WCFM_Email_New_enquiry), ‘[{site_title}] …’, ‘subject’, ‘[{site_title}] …’)
#4 /home/bprince/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(380): WC_Emai dans /home/bprince/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-emails.php à la ligne 395It seems related to WPML. But what I don’t understand is that a deactivated all WPML related plug-in after your first suggestion.
Thanks.
Bernard PrinceParticipantHi,
Thanks for the suggestion. After deactivate all plugins as suggested, the problem remain. But now I see this error in the console:VM3603:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Function.n.parseJSON (jquery.js?ver=1.12.4-wp:4)
at Function.a.parseJSON (jquery-migrate.min.js?ver=1.4.1:2)
at Object.success (wcfm-script-enquiry-tab.js?ver=6.4.9:15)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)Also, the error now seems to be only on Google Chrome, message is sent with Firefox.
- AuthorPosts