Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 15 replies, has 0 voices.

Last updated by Shekhar Bhandari 2 weeks, 4 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
May 9, 2025 at 3:41 pm #17017238

Tim

Background of the issue:
I am experiencing an issue with my WordPress multisite setup where link values change after 10 minutes from being updated. This problem occurs on specific language sites: German, Dutch, and French, but not on the main UK site or the Italian version. For example, when I add a button link on the German site, it initially appears correctly as "/de/alle-produkte", but changes to "/de?product_cat=alle-produkte" after 10 minutes. This issue only affects the Live environment, as it does not occur in Staging, Development, or Local environments. I am trying to determine if this issue is related to WPML or if it is a common problem in multisite setups.

Symptoms:
Link values on certain localized versions of the site change automatically after approximately 10 minutes from being updated.

Questions:
Is this issue related to WPML?
Have you encountered similar issues with other multisite setups?

May 13, 2025 at 3:01 am #17024918

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for contacting WPML support. I'd be happy to assist you with this issue.

I haven't received similar reports as far as only converting the category parameters in multisite automatically.

Since you mentioned this only occurs on the staging site, can you make sure the permalinks settings are similar on both the staging and production sites? I would also suggest you check if the .htaccess files are changed for everything this issue occurs.

Also, even though the permalink is changed, can you check the results in the front-end to see if it still works as usual?

Look forward to your reply.

Thanks

May 15, 2025 at 7:29 am #17035238

Tim

Hello,

Thank you for responding to our concern.

Upon reviewing the permalink settings and .htaccess files for both the staging and production environments, we found that they are identical. However, the production site still modifies the link for a few minutes, which does not happen on staging.

The changed link redirects to the expected url when accessed. For example, "/de?product_cat=alle-produkte" is redirected to /de/alle-produkte.

Thank you so much.

May 15, 2025 at 7:57 am #17035419

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

It seems like some plugins or themes are messing with your URLs, and along with WPML, they’re creating the permalinks we have now.

Have you tried disabling all non-WPML plugins, switching to one of the default themes, and checking if the issue still happens?

Remember to make a backup of your site (both files and the database) before making any updates or changes. It’s always a good idea!

Looking forward to hearing from you,

Thanks

May 19, 2025 at 8:22 am #17047068

Tim

Hello,

We just tried disabling related plugins that may cause any conflict, but seems to have no improvement.

Thank you so much.

May 19, 2025 at 9:29 am #17047416

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

To further debug this issue, could you please provide me with a copy of your website’s wp-content directory and database backup? I can replicate these files on my localhost and perform further debugging. You can compress these files using Google Drive and share the links with me.

I have enabled the private reply for you.

Thank you,

May 21, 2025 at 12:47 pm #17057240

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

I’m curious about how the site is set up. You have a lot of sites with different URLs. Are you connecting them in some way so each site works as its own language site?

I’d love to hear more about it.

Thanks!

May 21, 2025 at 1:42 pm #17057868

Tim

Hello,

The site is set up as a multilingual WordPress installation, where each language version is served from its own subdirectory—like /it, /de, /nl, etc. All the content is managed from a single WordPress instance.

Thank you.

May 21, 2025 at 2:26 pm #17058094

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Subdirectories aren't required for WPML to work like you mentioned instead it can create issues as the subdomains and the language url will collide with each other.

How are the translations synchronized between subdomains? I see language is hidden, can you explain it properly so I can check it properly.

Look forward to your reply.

Thanks

May 22, 2025 at 9:20 am #17060503

Tim

Hello,

Can I send you a video to replicate the issue, ma I request a private message.

Thank you

May 22, 2025 at 10:12 am #17060723

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Sure, I have enabled the private reply for you.

Thanks

May 22, 2025 at 11:27 am #17061268

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you please try this after a backup and see if it helps:

Go to: wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php in the method: \AbsoluteLinks::_process_generic_text right after:

} elseif ( isset( $permalink_query_vars['category_name'] ) ) {
$category_name = $permalink_query_vars['category_name'];

add this:

} elseif ( isset( $permalink_query_vars['product_cat'] ) ) {
$category_name = $permalink_query_vars['product_cat'];

and see if it helps.

Thanks

May 22, 2025 at 12:04 pm #17061440

Tim

Will do, Thank you

May 23, 2025 at 10:13 am #17065434

Tim

Hello,

Thank you for your recommendation. We have implemented the code you suggested and have been monitoring the results since yesterday. So far, the links have remained unchanged, which is a very positive development. This indicates that the code successfully resolves the issue of the links automatically changing after a few minutes.

Our only concern now is what will happen if we update the plugin—will it override the modified file?

Thank you so much.

May 23, 2025 at 11:09 am #17065750

Tim

Hello,

What appears to be the underlying cause of this issue?

Thank you.

The topic ‘[Closed] WordPress multisite setup changes link values after 10mins from update.’ is closed to new replies.