Background of the issue:
We are attempting to access the pages and articles on our site hidden link, but occasionally, the URL returns a 404 error (Page Not Found). We have to repeatedly go to the permalink settings and save them. We have selected the 'Different languages in directories' option in WPML.
Symptoms:
The URLs are temporarily inaccessible, and the structure does not include the language name. Error URL: 'hidden link'. The Correct URL is: 'hidden link'.
Questions:
Why do the URLs occasionally return a 404 error?
Why does the URL structure not include the language name even though 'Different languages in directories' is selected?
How can we prevent the need to repeatedly save the permalink settings?
Even after adding the workaround code the website is still facing with temporary accessibility of the 404 page not found errors. So request you to provide us the permanent fix.
The guide that my colleague shared with you mentions the following.
Identifying the specific plugin causing this issue can be challenging. It involves testing in a minimal environment and deactivating plugins one by one. After finding the responsible plugin, you would need to contact the author and request that they add a fix that limits the rewrite rule flushing to happen only once.
However, it is unclear if you have found the culprit plugin or if it is your child theme. So please proceed with the following.
We suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.
First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons. Then, please check if the problem persists. If it does not continue, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***
Regards,
Itamar.
The topic ‘[Closed] Temporary Inaccessibility of Pages and Blog Articles’ is closed to new replies.