This thread is resolved. Here is a description of the problem and solution.
Problem:
When a member tries to login, they see the following fatal error:
Fatal error: Uncaught TypeError: Argument 2 passed to WPML_User_Language::update_user_lang_from_login() must be an instance of WP_User, string given, called in ********/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php on line 15
Solution:
It looks like a compatibility issue with the member login plugin, the member login widget is most probably calling the wp_login hook:
https://developer.wordpress.org/reference/hooks/wp_login/
But it's not passing a WP_User instance as a second parameter.
Please note that the "Membee Login" plugin is not listed on the WPML compatibility list for the plugins - https://wpml.org/plugin/. This means that our compatibility team has not tested it.
So we suggest contacting the plugin author and sharing the issue with them, probably they can provide a quick fix.
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 4 replies, has 2 voices.
Last updated by 2 years, 11 months ago.
Assisted by: Mohamed Sayed.