Skip to content Skip to sidebar

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.

This topic contains 7 replies, has 3 voices.

Last updated by Mohamed Sayed 1 year, 5 months ago.

Assisted by: Mohamed Sayed.

Author Posts
February 13, 2024 at 5:21 pm #15299067

romainB-10

My site is set to Different languages in directories
English is default (staging.mobilitas.org) Home page url as well.
French is (For Home page) staging.mobilitas.org/fr

If I visit the French url it redirects to the English.
If I visit any other page of the French site, then the page loads without redirecting.

Please advise how I can check if this is a problem with WPML.
Note: On my production site, the problem does not present itself.

February 14, 2024 at 12:47 am #15299966

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi,

I have run a redirect check on the URL and can see an active 301 redirect added by WordPress.

> 301 Moved Permanently
> --------------------------------------------

Status: 301 Moved Permanently
Code: 301
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Date: Wed, 14 Feb 2024 00:45:33 GMT
Location: hidden link
Server: Apache/2.4.52 (Debian)
X-Powered-By: PHP/7.3.33
X-Redirect-By: WordPress

On the staging environment, please review the directory using a file manager. Do you see any folders named /fr ?

If you go to WPML->languages and switch to Language name as a parameter does it work ok then?

February 14, 2024 at 8:05 am #15300355

romainB-10

Hi Bobby

There is no folder named /fr.
If I change the URL format to parameter method, then yes it works.

Regards

February 14, 2024 at 11:55 am #15301855

Mohamed Sayed

Hi Romain,
Thanks for contacting WPML support, I will be glad to help you.

1. To ensure the quickest and most accurate support, please provide your debug information so that I can get a look at some of your configurations. You can find it in WPML > Support > click on “Debug information” link. Please check this link for more info: http://wpml.org/faq/provide-debug-information-faster-support/

2. Go to Pages > All Pages, and make sure the homepage translation is complete (Shows a pencil icon).

3. Resave the permalink settings in Dashboard > Settings > Permalinks, by clicking the save button without making any changes.

4. Make sure that you have a full database and website backup then go to WPML > Support > Troubleshooting page, and click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

Let me know please if that helps.

Kind regards,
Mohamed

February 14, 2024 at 1:14 pm #15302478

romainB-10

I have included the debug info.
I have completed the troubleshooting actions and the problem still happens.

February 14, 2024 at 3:26 pm #15303295

Mohamed Sayed

I would need to request temporary access (WP-Admin and FTP) to the staging site so we can investigate the issue further.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website first❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site if needed.

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

February 15, 2024 at 11:11 am #15306594

romainB-10

Hi
Unfortunately I cannot give you access at this stage. I have taken further steps, and when I deactivate my SmartCrawl Pro plugin, the problem does not present itself. I have not determined why that is yet.

February 15, 2024 at 7:08 pm #15309158

Mohamed Sayed

I checked the Free version of the SmartCrawl plugin and it has a "URL Redirection" option.

Please enable the plugin and go to SmartCrawl > Advanced Tools > URL Redirection, then check if there is a redirect from the /fr URL and delete it.