Plugin Support
Dragos
(@dragosvrejiu)
Hello,
Thank you for your interest in our plugin!
You might have a bug or conflict with your current theme / plugins.
Can you please visit TranslatePress -> Settings -> Advanced
Then, enable these features 1 by 1 in this order and try to see if it makes a difference. Also please disable or clear the cache if you have any.
1. Fix missing dynamic content
2. Disable dynamic translation
3. Fix spaces between HTML attributes
4. Fix broken HTML
Do you have the “Force language in custom links” option enabled ?(You can find it in TranslatePress->General)
Let me know how this goes.
With the best regards,
Hi Dragos,
thanks for the reply. However sad it is to admit, none helped.
I went through all steps one-by-one as you suggested (in fact I believe I have tried it before, but nevertheless). Checked and unchecked every option and tried every time.
I also checked both options (on and off) in “Force language in custom links” as you suggest as step 5.
Basically they all are checked to ON now and I still gave the same 404 error when switch to the second language.
I also checked the themes. Twenty sixteen, twenty seventeen (these were chosen as standard) and some “StartKit” (as a non-common one) tested. All have the same issue.
I can clearly see the problem though. The script calling the login page runs from the same directory as the translation. So when the language is default, the link ‘wp-login.php’ points to the correct file (http://learnpress.scienceontheweb.net/wp-login.php). But when the translation is on, it starts in a /ru/ subdirectory and the same link now points to http://learnpress.scienceontheweb.net/ru/wp-login.php which obviously does not exist.
So the question is: is this intended or is this a bug? The link to the login page is a Javascript (at least not a simple html link) so it is generated somewhere inside. Maybe this is a place to debug the issue?
Guys, thanks for your support. I really appreciate it. If it helps, I can send you logs or even grant admin access to the website.
UPD. I also switched off all other plugins to try to avoid any interference. It is still the same.
-
This reply was modified 4 years, 3 months ago by klopski.
Plugin Support
Dragos
(@dragosvrejiu)
Hello,
Please try the following and let me know if it solved your problem.
Make sure you have pretty permalinks enabled and working. https://wordpress.org/support/article/using-permalinks/#using-pretty-permalinks
You can try to resave them from WP Dashboard –> Settings –> Permalinks.
The 404 error is treated also on our troubleshooting page -> “404 error when accessing a translated page” section: https://translatepress.com/docs/troubleshooting.
With the best regards,
Hi Dragos,
thanks for the update. I have almost sorted the problem by browsing through your links. It required TranslatePress – Language by GET parameter Add-on and then it almost works.
I think it sorts the problem. Should something arise on the working website – I will let you know. For now it is all sorted. Thanks a lot.
Plugin Support
Dragos
(@dragosvrejiu)
Hello,
I’m glad it’s working now , thank you for the update on this matter.
Best wishes,