WPIntell

Source evidence

Uncaught Error with WPML plugin

Events Manager Pro – Mollie Payments · support · 2019-12-24T00:30:00+00:00

mixedsentiment
highseverity
0.95relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

9 / 34 rows with source links

26.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
studiochef resolved
The plugin works only when I disable the plugin “WPML Multilingual CMS”, when this plugin is active (which is very important for the site), and go to the Payement Gateway and when I want to change the settings the next line appears: “there is a critical error on your website, check your mail for instructions.” In the mail I recieve this message: An error of type E_ERROR was caused on line number 15 of the file /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin-ml.php. Errormessage: Uncaught Error: Call to undefined method EM_ML::switch_to_lang() in /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin-ml.php:15 Stack trace: #0 /root/website.nl/wp-includes/class-wp-hook.php(288): EM_Custom_Emails_Admin_ML::after_gatweay_custom_emails(Object(EM_Gateway_Mollie), Array, Array, Array, Array) #1 /root/website.nl/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #2 /root/website.nl/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin.php(328): do_action(‘after_gatweay_c…’, Object(EM_Gateway_Mollie), Array, Array, Array, Array) #4 /root/website.nl/wp-includes/class-wp-hook.php(288): EM_Custom_Emails_Admin::em_gateway_settings_footer(Object(EM_Gateway_Mollie)) #5 /root/website.nl/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #6 /roo This topic was modified 6 years, 5 months ago by studiochef . This topic was modified 6 years, 5 months ago by studiochef . I’m sorry, but as the error clearly states, this is not caused by this add-on. It refers to a missing (undefined) function in a EM Pro file. It points to a function in the EM_ML class, which is defined in the file /wp-content/plugins/events-manager/multilingual/em-ml.php (free version) Upon inspection, I found that it only occurs in combination with EM, EM Pro, WPML. EM wants to translate an email, calls a non-existent function and WordPress throws in an error. I checked it for you, and indeed there is no function ‘switch_to_lang()’ in that class. The EM dev team has made a lot of changes concerning WPML in their last update. It seems you found a bug and need to report that to the EM team, as they need to solve this. I can not add a function to their code 😉 Thanks a lot for the response! I will report it! Greets Wilfred

Comments

2 shown
Stonehenge Creations 2019-12-24T02:49:00+00:00

I’m sorry, but as the error clearly states, this is not caused by this add-on. It refers to a missing (undefined) function in a EM Pro file. It points to a function in the EM_ML class, which is defined in the file /wp-content/plugins/events-manager/multilingual/em-ml.php (free version) Upon inspection, I found that it only occurs in combination with EM, EM Pro, WPML. EM wants to translate an email, calls a non-existent function and WordPress throws in an error. I checked it for you, and indeed there is no function ‘switch_to_lang()’ in that class. The EM dev team has made a lot of changes concerning WPML in their last update. It seems you found a bug and need to report that to the EM team, as they need to solve this. I can not add a function to their code 😉

studiochef 2019-12-24T09:37:00+00:00

Thanks a lot for the response! I will report it! Greets Wilfred