This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where pages that take data from MetaBox display the correct translation in Greek, but when switching to the English version, the Greek translation persists. This problem only occurs for logged-out users; logged-in admins see the correct translations in both languages.
Solution:
We have identified this as a known issue and have published an errata at https://wpml.org/errata/oxygen-templates-translation-issues-for-logged-out-visitors/.
If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket at our support forum.
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, Go Global Application, Known issue
This topic contains 19 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
January 5, 2024 at 10:44 am #15153996 | |
hamletT |
I have some pages which take their data from MetaBox and when i am in the Greek Version of the site the translation is shown ok but when i visit the English version i see the Greek translation. When i visit page logged in as an admin it works on both versions fine. The builder is Oxygen that i am using |
January 5, 2024 at 11:31 am #15154170 | |
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 following? 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. - Fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code: define( 'WP_MEMORY_LIMIT', '128M' ); define( 'WP_MAX_MEMORY_LIMIT', '256M' ); Remember to add these lines before the line where it says: - Deactivate all plugins except WPML, Meta Box and Oxygen and check for the issue. Please note that "Meta Box" is on our compatibility list, while "Meta Box AIO" isn't. So it is a good idea that you test with minimum possible plugins active. Please let me know and I'll try my best to help you further on the matter. Regards. |
January 5, 2024 at 12:30 pm #15154359 | |
hamletT |
I still get the same problem. I increased the memory limit and deactivate the plugins except from Meta and oxygen. The issue occured when i updated the WPML and Oxygen Plugins. The screenshot is when i am logged in as admin. |
January 5, 2024 at 1:02 pm #15154504 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend. IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. |
January 8, 2024 at 6:31 am #15158200 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access, I am working on it and 'll get back to you accordingly. |
January 8, 2024 at 12:44 pm #15160429 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've tried several things, mostly without any luck. Although for a brief time I was able to fix it but as soon as I edited another inverter, the previous one reverted back to Greek. I also noticed that sometime the one I edited appeared fine too - so I also tried disabling the Object Cache but it also made no difference. I also updated the 2021 theme in an effort to fix the problem. But since you're using Oxygen builder, which entirely disables the WordPress theme system. The active theme is never loaded. So I believe this is something particularly related to the builder. However, I see that Object Cache plugin needs an update. Can you please update it and try again? I am not sure if it 'll fix the problem so I've prepared a fresh Sandbox site at hidden link. Can you please create a minimal setup in the Sandbox site, with a simple example reproducing the problem? It is a fresh installation with WPML plugins uploaded (not installed or active). You can upload your theme and plugins here and setup as needed. You can use this plugin https://wordpress.org/plugins/download-plugins-dashboard/ to enable downloadable links for plugins and themes in Plugins and Themes pages respectively. Then you can upload in the sandbox via Plugins/Themes -> Add New. A minimal setup to reproduce the issue is necessary. This way we can see if this only happens on your server or it's a global problem. Then I can also request expert insights from our 2nd tier team, to investigate the issue. Please take your time and reply when the site is ready. Once you are able to reproduce the issue, please write down detailed steps about how one can reproduce the issue on another fresh installation. See https://wpml.org/faq/how-to-reproduce-issues-and-share-them-with-wpml-support/ for details. |
January 9, 2024 at 11:06 am #15164019 | |
hamletT |
Hi, i have tried to reproduce the issue with the sandbox site but i have to enter the license of the pro plugins in order to activate them and this is not possible because we may have issue with the production site if i remove the license from Meta Box. Can we make the test on the production site in order to avoid that. I have tried to disable all the plugins except from WPML,Oxygen,MetaBox and MetaBox AIO and the problem still occurs. I also duplicated the website to another server to check if it was an issue with the server settings or cache but i get the same error. Let me know if you want me to send you a hidden link for the test server. |
January 9, 2024 at 1:05 pm #15164551 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. I see that you can add post types, custom fields and etc without the license key for Meta Box, which seems to be required for extensions only. Can you continue without the license key to as much extent as possible? So we can at-least be sure if the issue can be reproduced with basic features or not. Secondly, it would be great if you can provide access to your test site. So I can compare both ends too (i.e. sandbox without additional meta box features and the one fully in use on the test server). I've enabled your next reply as private to share access to the test server. Please also let me know that if it is OK to remove un-necessary plugins from the test server and downloading a copy of the test site? Because this may be needed to check in another environment by our 2nd tier team - if it needs more investigation. |
January 10, 2024 at 7:37 am #15167356 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access but unfortunately password seems to incorrect while trying to login to WP Admin. Please check on your side and provide the correct credentials. I've set your next reply as private again, in case you want to provide new credentials. |
January 10, 2024 at 12:45 pm #15168884 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access, I'm able to login and working on it. I'll get back to you accordingly. |
January 11, 2024 at 7:47 am #15172407 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've escalated the matter to our 2nd tier team for further investigation, with a copy of your test site. Please keep the access open, in case they need to revisit. I'll update you as soon as there's any progress. |
January 16, 2024 at 12:22 pm #15189658 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. Our team tried some solution on your staging site, but looks like Cloudflare cache has cached something wrongly and resulting in a problematic outcome. Can you please clear the Cloudflare cache or disable if possible? Secondly, is it OK if I migrate (make a copy) of the staging site on our Cloudways test ground? So we can continue to debug without a middleware interference. Please let me know. |
January 18, 2024 at 5:31 pm #15201662 | |
hamletT |
Sure you can make a copy! The site is not using cloudflare for DNS. Let me know if you need any help with the migration. I have also cleared all the cache from cloudways. |
January 19, 2024 at 6:23 am #15202983 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for confirmation, I am preparing my CW site and 'll try to migrate your staging site there soon. I'll update you accordingly. |
January 19, 2024 at 1:32 pm #15205155 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience, I am still working on it and haven't found a solution yet. I'll retry afresh on Monday and 'll get back to you accordingly. |