Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client reported two issues: a discrepancy in the number of main level menu items between French and English versions of their site, and various problems caused by WPML, including too many redirects and permalink changes leading to internal server errors.
Solution:
For the redirection issue, we suggested checking the known problem related to WooCommerce Multilingual causing too many redirects when using shop base with category permalinks. We recommended a workaround which can be found here: https://wpml.org/errata/woocommerce-multilingual-too-many-redirects-error-when-using-shop-base-with-category-permalinks/. Before implementing this, ensure to back up the database.
For the permalink issue, it appears to be related to .htaccess being overwritten by WPML. A quick solution is available here: https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/.
Regarding the language switch leading to a 404 error, we requested a screenshot to better understand the issue with the hardcoded link.

If these solutions do not resolve your issues or seem outdated, 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 problems persist, 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.

This topic contains 6 replies, has 0 voices.

Last updated by Andrey 3 weeks, 3 days ago.

Assisted by: Andrey.

Author Posts
March 11, 2025 at 2:30 pm #16802248

shanyM

Second issue it's the number of main level menu in catalogue/store is 6 in french but only 5 in french. I been told its something wrong but wpml but unsure if accurate.

March 11, 2025 at 2:41 pm #16802301

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Are you referring to product categories on the page? If so, did you translate them all?

March 11, 2025 at 3:54 pm #16802782

shanyM

I mena 6 in french and 5 in english. I do see translation of all of them. That why its so confusing.
Someone check and told its issue with wpml linked with auto translate translation be quantity 0 and so not displayed by the theme. Dunno if exact.
hidden link vs hidden link

March 11, 2025 at 8:32 pm #16804054

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Should it be 6, am I correct?

Have you attempted to run the troubleshooting options in WooCommerce → WooCommerce Multilingual & Multicurrency → Status and clicked on the troubleshooting link?

Before making any changes, please ensure that you back up your database first.

March 13, 2025 at 7:45 pm #16813537

shanyM

Didt do anything that i notice.

March 13, 2025 at 8:46 pm #16813625

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Are you using the WooCommerce Multilingual & Multicurrency plugin? I didn't see it in the list of plugins from the debug information you provided.

Please ensure that the WooCommerce plugin is also updated.

March 14, 2025 at 3:18 pm #16817603

shanyM

Yes we use it but i desactivate it because a error happened, it been reactivate.

March 14, 2025 at 7:46 pm #16818499

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

March 16, 2025 at 7:40 pm #16822336

shanyM

Did you conect to check? i notice the wpml plugin causing the error to many redirection on the site on the page hidden link

March 17, 2025 at 4:11 pm #16826400

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I haven't checked the problem yet. In the private reply, you mentioned that you could resolve the original issue.

i notice the wpml plugin causing the error to many redirection on the site on the page hidden link;

You might be experiencing the following issue: https://wpml.org/errata/woocommerce-multilingual-too-many-redirects-error-when-using-shop-base-with-category-permalinks/

Can you try the workaround from the link above and see if it helps?

Before making any changes, please ensure that you back up your database first.

March 17, 2025 at 8:56 pm #16827210

shanyM

I tryed the code provided but it changed nothing. I removed it after i see it was changing nothing.

I didt solve the issue, i just manage to see french part working english part still a mess and need help in emergency.

March 18, 2025 at 7:27 pm #16832234

shanyM

Can you check now its emergency.

March 18, 2025 at 7:58 pm #16832319

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I will take a look and update you as soon as I know more.

March 18, 2025 at 8:41 pm #16832420

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I currently don't see an obvious reason for the issue. It appears that incorrect redirection can occur even without WPML.

Are you using any custom coding on the website? Are there any redirections set in the .htaccess file or redirection plugin?

Have you had a chance to temporarily deactivate all plugins except for WPML, WooCommerce Multilingual & Multicurrency, and WooCommerce?

I also tried temporarily changing the slug URL to /en/store/, but the issue persists.

March 18, 2025 at 10:30 pm #16832775

shanyM

htaccess dont seem to me to have redirection:
# SGS XMLRPC Disable Service
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
# SGS XMLRPC Disable Service END
SetEnv PHPRC /home/customer/www/pefraser.com/public_html/php.ini
# BEGIN WordPress
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
AddHandler application/x-httpd-php83 .php .php5 .php4 .php3

As for module, i try desactivate all as soon the category disapear in french of course the error disapear in english.

After many test here the result: if i desactivate one of these two erorr disapear: WPML Multilingual CMS & WooCommerce Multilingual & Multicurrency