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?
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?
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.
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’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?
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.
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.
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:
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?
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.