Background of the issue:
I have a calendar plugin FullEvents - Ovatheme Events (hidden link). In WPML, I've set the slugs to be /evenement/ in French and /event/ for English. It works... until it doesn't. About once a week, these slugs change (I think they either switch or it changes just for one language) and create 404 errors. Temporarily correcting the issue is not complicated: I empty the cache and resave the permalinks and everything works again. But of course, I don't always catch this error as it happens, so visitors encounter a lot of 404 errors. I would like a permanent fix for this.
Symptoms:
URL slugs for each language change automatically, causing 404 errors.
Questions:
How can I prevent the URL slugs from changing automatically?
Is there a permanent fix to avoid 404 errors caused by slug changes?
Why do the slugs change about once a week?
Is there a way to automate the process of emptying the cache and resaving the permalinks?
before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
It seems that this might be caused by certain third-party plugins calling the flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess and as a result, create 404 errors.
OK, I've done the workaround. The error could take a week or even two to reappear, so I'll see what happens in the coming week or two. Thanks!
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.