Background of the issue:
I am trying to resolve redirect loops found by SEMRush, specifically to the main home page for Thai - English language. I wasn't able to figure out where the issue is coming from. All 22 of the issues found were for this link: hidden link
Symptoms:
I expected to see no redirects, but instead, I got a redirect loop as shown in the screenshot: hidden link
Questions:
How can I stop the redirect loop to the main home page for Thai - English language?
What could be causing the redirect loop for the link hidden link?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.
I've checked your Website debug information and I can see that you're still using the older versions of the WPML plugins. Could you please update the plugins to the latest version and retest to see if the issue still persists.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Also, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line: