This thread is resolved. Here is a description of the problem and solution.
Problem:
When WPML is active, the Restricted Content setting were empty. After deleting the pages set previously in this area, restrictions applied on the whole site, instead of just the set pages.
Solution:
See this errata https://wpml.org/errata/woocommerce-memberships-restrict-content-conditions-applies-to-all-pages-across-the-site/
Relevant Documentation:
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 19 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 5 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
July 17, 2023 at 8:54 pm #14053463 | |
geneK-2 |
Hi my name is Alfredo, I'm a developer of genekeys.com After we finished the wizard of the WPML and don't being translate anything yet we found a very annoying BUG that change ALL of the conditions of our current membership plans. To have a better perspective I'm going to record a LOOM video: hidden link Thanks in advance I am trying to: navigate the web as GUESS Link to a page where the issue can be seen: ALL PAGES I expected to see: content without any restriction Instead, I got: content with restriction |
July 17, 2023 at 9:21 pm #14053595 | |
geneK-2 |
editing content |
July 18, 2023 at 11:14 am #14058589 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. Before proceeding further, may I ask you to try the followings please? IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised. - Update WordPress to the latest version. Also update any plugins necessary for this setup, as well as, the theme, if needed. Please let me know how it goes and I'll try my best to further help you on the matter. Regards. |
July 18, 2023 at 5:35 pm #14061377 | |
geneK-2 |
Hi Waqas Bin Hasan We follow your recommendations and we still have the same issue, I attached the evidence with only a few plugins active, and using a Twenty two theme, but again this is NOT a frontend issue, this is a ADMIN/BACKEND issue. Could you please fix that? |
July 19, 2023 at 10:47 am #14065261 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for taking the time to check in the minimal setup. May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards. Also provide detailed steps and links to pages in admin to reproduce the issue. Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site, which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned. I've set your next reply as private to share this information safely. IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. |
July 20, 2023 at 8:22 am #14070057 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the detail. But unfortunately I am unable to login. Looks like the user does not exist, as I am getting this error (see attached). I've set your next reply private again, in case you need to provide updated credentials. |
July 24, 2023 at 6:53 am #14085901 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access, I was able to login. I am working on it and 'll get back to you as soon as I've some progress. |
July 24, 2023 at 2:01 pm #14090111 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience on this. I am still working and 'll update you soon on this. |
July 25, 2023 at 9:52 am #14095033 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience. I tried to understand and observed the issue in your staging site. Here hidden link I could add a page in Restricted Content and save. And later reloading it and saving again seems to have it in place. But perhaps I am not getting correctly that how this plugin (WooCommerce Memberships) work exactly, I've prepared a fresh sandbox site at hidden link I've installed the same active plugins as yours. WPML is primarily configured based on yours. But I didn't configure WooCommerce and the memberships plugin. Can you please create a sample membership and the scenario to reproduce the issue? Please remember to note down and share the steps, so we can also try to reproduce and observe. Please note, you also mentioned that after finishing WPML wizard the problem started. If that's the case, let me know, I'll provide you another fresh sandbox site without configuring WPML plugins. So you can create a sample membership and then activate/configure WPML. Please let me know. |
July 25, 2023 at 3:37 pm #14097735 | |
geneK-2 |
Hi, I cannot reproduce the error too after the WPML installation, let me try to reproduce locally in a fresh installation if I could recreate the behavior, I think that maybe the error if with Woo commerce products and plans that are before the instalation. |
July 25, 2023 at 7:02 pm #14098745 | |
geneK-2 |
I think that I was able to reproduce the error on your environment, same steps as before but to reproduce the same behavior we need to: 1) Create 2 or 3 pages in WP |
July 26, 2023 at 4:46 am #14099405 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for reproducing it in sandbox. But I am little curious about step #3, I mean if the pages have been deleted, what is the expected behavior? Like the pages are not there. I know you mentioned that WPML caused empty conditions. |
July 26, 2023 at 3:29 pm #14105529 | |
geneK-2 |
In a normal scenario without WPML the restrict content doenst appear because the filter only applied for "pages that didnt exist" the problem is like when WPML is active not take the same restriction and delete all of them and when the page is empty, that means that ALL pages have restriction. And we don't have a plan that restrict ALL PAGES, that is the bug (see pictures or the loom video) |
July 27, 2023 at 11:02 am #14109879 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the details. I am working in it and 'll try again to observe and understand. I'll get back to you as soon as possible. |
July 28, 2023 at 9:14 am #14115805 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I am still working on it and trying to understand so I can escalate the issue to the 2nd tier for investigation. I'll update you by Monday at earliest. Have a great weekend in the meanwhile. |