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: Exception
This topic contains 3 replies, has 2 voices.
Last updated by Bruno Kos 1 year, 7 months ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
April 24, 2023 at 9:07 am #13525453 | |
ivanA-27 |
Hi, We have several sites with this error but this one reports it most frequently. Site has 2 domains - gozobeta.gov.mt for English and ghawdexbeta.gov.mt for Maltese. Users are frequently receiving error message that the site has changed URL. They are then stuck until an administrator can log in and click on the "This site has moved" option. Found this in the error log: Extra data: To note, we are hosting sites on Azure behind Azure Front Door. Both domain names are created as CNAMEs and added as custom domains within Azure Front Door and also on the Azure Web App containing the WordPress site. We also use Azure B2C to authenticate users. Since site is still under development, we force everyone to log in, even if they just want to view the site. This is preventing users from editing sites and we have a tight deadline. |
April 25, 2023 at 1:20 pm #13533423 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Hi, Thank you for contacting WPML support! Can you check if site URL and WordPress URL has the same domain, so only primary domain? Also, do you know perhaps if this happens when only when you login to dashboard from the 2nd domain or any other actions you are aware of that trigger this prompt? Regards, |
April 25, 2023 at 1:38 pm #13533601 | |
ivanA-27 |
Hi, Site & WordPress URL are the same, pointing to default language of the site, hidden link. This is happening even when logging into the primary domain. We had originally imported the sites from a parent site as we needed to create multiple sites with same structure/theme/permissions. We then changed the WPML key for each site in their wp-config.php file. I have since upgraded the site to the latest WPML version and issue was still happening. Regards |
April 26, 2023 at 6:14 am #13537971 | |
Bruno Kos Supporter
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+01:00) |
Hi, So sometimes you login from the second domain then, but also logout? As a notice can be triggered and stay even you logged-out from the secondary domain. Please go to WPML > Support > Troubleshooting and click "Remove all messages and notifications" then check if notice appears again and don't use 2nd domain for login. Also, can you tell us why is REST API endpoint showing 401 hidden link ? It should respond like this https://wpml.org/wp-json. Regards, |