QTranslate auto redirection not working for one entry
The default language for my website is Ru. Determine the browser language is enabled.
When a user with En in the language specified by his browser goes to my first page http://ivangrigoryev.com , it automatically redirects him to /? lang = o.
But when the user navigates to one post, for example, via FB or types the url directly, for example, http://ivangrigoryev.com/one-plus-one-review/, no redirection occurs.
I checked for plugin conflicts - nothing at all. WordPress version 3.5.1 qTranslate version 2.5.34
Any suggestions?
source to share
To solve this problem, I replaced line 71 in the qtranslate_core.php file
setcookie('qtrans_cookie_test', 'qTranslate Cookie Test', 0, $q_config['url_info']['home'], $q_config['url_info']['host']);
setcookie('qtrans_cookie_test', 'qTranslate Cookie Test', 0, $_SERVER['REQUEST_URI'], $q_config['url_info']['host']);
source to share
Try to re-save your permalinks, if that doesn't work, I would instead install mqTranslate, its qTranslate fork (which is no longer maintained active) https://wordpress.org/plugins/mqtranslate/
Many bugs were fixed and this was a big improvement, and most importantly, it is fully compatible with qTranslate, so you won't lose your settings or translations.
source to share