retrovert
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] Language Switcher Widget does not switch languagesThe following are my main problems:
1. When I click on “Russian”, from the front page, instead of displaying the same page with some Russian content, the site tries to redirect to a new URL, which is a URL of an existing single post, but the URL is translated into Russian. It does not find this post and pops 404.
2. If at this time I close browser and re-open again my site I still get the same 404 page.Note, that also I tried “mTranslate”, but, I had exactly the same problems with it as well, except, it did not cause the “warnings”.
Now, I apologize for my “technical” comments, I simply wanted to explain how and why I changed 2.8 before I tested it.
I had to get rid of warnings to use 2.8, so I was trying to figure out which modules were different between 2.7.9 and 2.8 that could cause the warnings. This is what I found:
1. “qtrans_convertURL” is used in “xhaleera_addons.php”, a new module added in 2.8. This module was not in 2.7.9, at least not in my .zip.
2. “qtranslate_compatibility.php” was at least loaded in 2.7.9 by the “qtranslate.php” module, but this was commented out in 2.8.
3. When I put back into the “qtranslate.php” the commented line that was loading “qtranslate_compatibility.php”, the warning messages disappeared.By no means I imply that this was the right thing to do, and I am sorry if this sounded like this.
But, this allowed me to continue testing 2.8, and then I ran into the problems I described above.
Also, Chris, I will not be able to work on the site for the next few days. So, I had to revert back to the old (original) “qtranslate” plugin to keep the site usable.
I realize that you will not be able to reproduce the problem on my site in the near future, and this makes it much harder to fix.
I will wait until the 2.9 release and will try it again then.
Please, do not close the issue.Thanks.
Forum: Plugins
In reply to: [qTranslate X] Language Switcher Widget does not switch languagesI just noticed some other unexpected behavior:
(1) My front page has normally 4 columns – the last one does not display anymore. I will double check on this – may have nothing to do with this plugin, but one thing is suspicious: the 404 page is for a post from the missing column.
(2) The URL of the 404 page is stored in cookie, and when close browser and re-open it again for my site I still get the 404 page.Forum: Plugins
In reply to: [qTranslate X] Language Switcher Widget does not switch languagesThere is a line in the “qtranslate.php” (#521-?) that got commented out in 2.8:
—————————–
require_once(dirname(__FILE__).”/qtranslate_compatibility.php”);
—————————–
I put it back in, right after the commented block, just as it was in the previous version I had.This took care of the warning messages.
The changes you made also made difference for switching – cookies do not seem used anymore.
However, the switcher still does not work. Just go to my site’s (asechka.com) front page and click on “Russian”. Instead of displaying the same page with some Russian content it goes to a new URL for one specific post with URL translated into russian and pops 404.
Hope, not a big deal to fix.
Forum: Plugins
In reply to: [qTranslate X] Language Switcher Widget does not switch languagesTo John:
Updated to 2.8 on 1/8/2015 11:50 am CT.The warning messages are back:
———————————-
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘qtrans_convertURL’ was given in /home1/senderf/public_html/wp-includes/plugin.php on line 214Warning: Cannot modify header information – headers already sent by (output started at /home1/senderf/public_html/wp-includes/plugin.php:214) in /home1/senderf/public_html/wp-includes/pluggable.php on line 1179
—————————Both issues stated in the posts above, got resolved. But I had to open another issue with language switcher widget not working as in the same way as it was in “qtranslate”.
Follow up:
I decided to activate “qtranslate-x” anyway. The original warnings are gone, but the following new fatal error appears:
—————————-
Fatal error: Call to undefined function qtrans_generatelanguageselectcode() in ……
—————————Is there an equivalent new function in “qtranslate-x”?