Background of the issue:
I am trying to manage a WPML-powered website with three domains: Veterinol.eu (main), Veterinol.cz, and Veterinol.pl. The frontend works nearly okay, but the admin area is problematic. When I log into the admin, it causes a significant server load due to cross-domain redirecting. The issue can be seen at hidden link.
Symptoms:
The admin area is extremely slow to load, with domains loading in a loop (EU>PL>CZ), causing high server load. The console shows red errors related to the 'wp-wpml_current_language' cookie being rejected due to cross-site context issues. There are also yellow notices about PHP errors in Ajax Response, specifically regarding the 'Function _load_textdomain_just_in_time' being called incorrectly.
Questions:
What is causing the cross-domain redirecting issue in the admin area?
How can I resolve the cookie rejection and PHP error messages?
Hi, just for info - it is doing the same things as production site, even that it is set up as "language in its folder" not language per domain. Interesting is, that it is doing the quick redirection still between DOMAINS not between vet.kolovratok.sk/sk or CZ or PL.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Madrid (GMT+02:00)
Hi there!
To help us narrow down the cause of the redirection and high server load, could you please follow these steps:
1. Temporarily deactivate WPML and check if the redirection still happens. This will help us determine whether the issue is related to WPML or something at the server level.
2. Then, please deactivate all other plugins and switch to a default WordPress theme (like Twenty Twenty-Four), leaving only the core WPML plugins active.
3. If the issue disappears in this minimal setup, start reactivating the plugins one by one and test after each activation. This way, we can identify if a specific plugin is causing the redirection or interfering with WPML.
Let me know how it goes, and I’ll be happy to assist you further based on the results!