This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue with The Events Calendar plugin where the language changes unexpectedly when navigating or clicking on the month view, even without interacting with the language dropdown. Additionally, each event sometimes displays in a random language. Solution: It's due to the caching by the hosting provider. We recommend asking the hosting provider to exclude the domain from the cache, specifically for the calendar functionality and it fixes the issue.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML 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.
Thank you, as per the video and the staging site it seems that the fix it's working. Please go ahead and apply the same fixes to PRD. I just made a back up so you should be good to go.
Thanks for your reply. I'll try to answer your questions accordingly.
1. Would future plugin updates affect this fix?
No, it will not.
2. Is there something I should be aware of on the files, I would not want to change something and this issue start happening again.
I've commented some code in the wp-config.php and you can check on it.
Thanks for your patience. I've transferred 7566 credits from hidden link to hidden link. Feel free to open a new ticket/chat if you need anything further.
We found a major issue with the commented code in the config file. The Admin for the site is giving a critical error and it's not letting us login through WPE Admin dashboard. I talked to WPE support and they said this was happening because of the commented out code in this file.
This is what I see when trying to login to the admin dashboard (please see image attached). Is there a way we can just comment out what it's really creating the random switch issue and leave everything else as is?
Please let me know any suggestions. I don't want to create the random language change issue again since we are about to launch the events.
Thanks for your reply. Are you able exclude this domain hidden link from the WPEngine cache? It looks like to me the cache is causing issues with the calendar, and disabling the cache feature seems to fix it. Let me know if you want me to restore the code so that you can reconfigure WPEngine to exclude cache on the calendar site.
I am talking to WPE engine to see if this is possible. I'll reach out as soon as I get an answer. I don't want to restore the code just yet since the events are now live.