This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing an issue where the Members Directory was not properly displaying members in different languages. Specifically, the Member Type for some members was not specified, and students and instructors were not shown at all in Ukrainian and Russian. The issue was related to the API interactions with the "VibeBP" plugin, where the 'member_type' property in the API payload was not reflecting the translated term in languages other than the default.
Solution:
We took the following steps to resolve the issue:
1. We navigated to WPML > Settings > Taxonomies Translation and set the translation preference for "Member Types (bp_member_type)" to "Not Translatable."
2. We then removed the Translated Member Types by going to Users > Member Types, keeping only the default ones.
These adjustments ensured that all users were assigned the default member types, and the filter began to work properly in each language.
If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket with us.
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.
Tagged: Compatibility, Exception
This topic contains 9 replies, has 2 voices.
Last updated by Prosenjit Barman 1 year, 1 month ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
December 15, 2023 at 3:15 pm #15074075 | |
alexeyK-12 |
Hello! We contacted WPLMS support hidden link , but after long efforts to solve the problem, they advised us to contact you again. hidden link So, let me remind what the problem is: In Ukrainian and Russian students and instructors are not shown at all. hidden link hidden link. We need all users to be filtered in the same way in all languages, that is, the user's member type should be the same in all languages. So that when a user registers, his member type is automatically set in the same way in all languages. |
December 18, 2023 at 2:58 pm #15085393 | |
alexeyK-12 |
Hello! |
December 19, 2023 at 11:08 am #15091575 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, We've been dealing with an unusually high number of tickets over the past few days, resulting in a slight delay in our response times. But, we are trying our best to reduce the time. Sorry for any inconvenience this may have caused. I understand the issue you're having. From WPML Debug Info, I found a taxonomy named "member type" which is set to "Translatable". It seems that type hasn't been assigned to the members correctly, which is why, the Type is not showing in the Directory. Would you please try the following and check if that helps to solve the issue? - Please go to "WPML > Taxonomy Translation" and select the "Member Type" from Dropdown Please let me know if that helps or if you need further assistance in this matter. I will be happy to help. Best regards, |
December 20, 2023 at 2:40 pm #15103587 | |
alexeyK-12 |
Hello, We have registered a new student. but the student is not displayed on the Members Directory in Ukrainian and Russian. The gender filter also does not work in Ukrainian and Russian. |
December 21, 2023 at 5:53 am #15106605 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Since the issue persists, a closer inspection will be required to understand the root cause of the issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response. Best Regards, |
December 22, 2023 at 7:02 am #15114435 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I have checked and found that if I select "Instructor" from the filter in the Russian language, I can see that a Member appears in the result, please check this screenshot: hidden link But, if I do the same for Ukranian language, it is not happening. Could you clarify if there were any unique adjustments made to that profile? Understanding the reason for its appearance in the Russian filter but not the Ukrainian one would greatly assist in identifying a solution. I also want to confirm that the slug and other configurations for the Member types appear correct from my end. It suggests that there might be specific settings for the profile that aren't translating to the other language. Let me know the update. I will be happy to help if you need further assistance in this matter. Best regards, |
December 22, 2023 at 1:15 pm #15117529 | |
alexeyK-12 |
Previously, during testing, we could manually configure the member type here hidden link and the member was displayed on the page like this one hidden link. But if at first the member was displayed only in English and we changed its member type to some other language manually, then after that it was displayed only in the language where we manually set its member type and disappeared from the language where it was displayed before that. So far, WPLMS support has helped us set up the member type so that it is copied to all languages automatically, but it did not help with users being displayed on the site. |
December 26, 2023 at 7:42 am #15128349 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Since the "Users" section of WordPress is part of the Admin Page, not a post type, it is not possible to create users per language. Would you kindly clarify the following statement?
I also would like to inform you that by changing the Translation preference for the "Member Types (bp_member_type)" post type to "Not Translatable"(WPML > Settings > Taxonomies Translation), it is possible to display the Instructors properly in other languages, but the Student filter doesn't work with that adjustments. However, based on your answer, I'll delve deeper into the matter and do my utmost to resolve the issue for you. Best regards, |
December 26, 2023 at 1:00 pm #15130065 | |
alexeyK-12 |
Hello! We sincerely appreciate your help! I meant that at first, we had no problems with the English language filter, and all users were displayed correctly. But we need all the same users to be displayed in the same way in Ukrainian and Russian languages. We tried to manually select the member type here hidden link, because before there was no checkmark in either Ukrainian or Russian ( WPLMS support helped us to duplicate the member type in all languages - but it did not help to solve the problem). |
December 27, 2023 at 8:18 am #15131238 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, After a thorough investigation, I have successfully managed to display the Members properly in the directory. The directory now accurately lists Instructors and Students. Below, I've detailed the process and my findings for your review. The core of the issue was related to the API interactions with the "VibeBP" plugin. Specifically, when selecting a Member type through the directory's filter, I noticed that the API payload was consistently sent in the default language. This behavior persisted even when switching to other languages. To illustrate, let's consider the "Instructor" member type. When a user selects "Instructor" in the Ukrainian language, the payload for the 'member_type' property should correspondingly reflect the translated term (e.g., "Instructor-uk", as you have translated the Instructor already to Ukranian). However, I found that the "member_type" property always defaults to "instructor" in any language, as shown in the provided screenshot (hidden link). Since the "Instructor" member type doesn't exist in other languages, the query returns zero results. It appears that the multilingual support has not yet been integrated properly into the API, responsible for retrieving member information from the VibeBP plugin, which is why the filtering function is not operating correctly across different languages. I suggest reaching out to VibeBP support to address this issue and share these findings with them. I hope they can devise an effective solution to manage member types in each language. Now, to address the issue, I took the following steps: 1. Navigated to "WPML > Settings ↳ Taxonomies Translation" and adjusted the translation preference for "Member Types (bp_member_type)" to "Not Translatable." After these adjustments, the Filter started to work properly in each language. From now on, any student or Instructor you add will be part of the default Member type and they will also appear properly in the Member directory upon filtering. Please let me know if that helps or if you need further assistance in this matter. I will be happy to help. Best regards, |