Multilingual with qTranslate-X or XT
-
Hello,
I´m using Lay ThemeVersion: 2.8.2 and WordPress 5.2.3. Tried both versions of qTranslate but they do not work. I can translate the title of an page and the languageswich changes that in the frontend but all gridder content is unaffected – it does not switch in the backend. The URL switch is working as well.
Update: I managed to get qTranslate-X to work but now I get this error in the backend:
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /kunden/505778_96160/webseiten/wp-includes/class-wp-hook.php on line 286
Warning: Cannot modify header information - headers already sent by (output started at /kunden/505778_96160/webseiten/wp-includes/class-wp-hook.php:286) in /kunden/505778_96160/webseiten/wp-includes/pluggable.php on line 1251
Warning: Cannot modify header information - headers already sent by (output started at /kunden/505778_96160/webseiten/wp-includes/class-wp-hook.php:286) in /kunden/505778_96160/webseiten/wp-includes/pluggable.php on line 1254
And this in the frontend (flashing before the page is loaded):
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /kunden/505778_96160/webseiten/wp-includes/class-wp-hook.php on line 286
Any Idea what I can do?
Thank you!
-
found a solution here: https://wordpress.org/support/topic/problem-with-php-7-1-2/#post-8908632
You will find it in qtranslate-x/qtranslate_frontend.php
In line 523 change
function qtranxf_postsFilter($posts,&$query) {//WP_Query
to
function qtranxf_postsFilter($posts,$query) {//WP_Query
and in line 597 change
function qtranxf_excludeUntranslatedPosts($where,&$query) {//WP_Query
to
function qtranxf_excludeUntranslatedPosts($where,$query) {//WP_Query
-
Just curious: Is anyone able to get qTranslate XT working?
-
Dear @John
we will look into this as well.
There seems to be some issues with this plugin.Best!
Marius
-
Hey you need to use an older php version to have qtranslate work :/
Yea I need to think about how to handle multilanguage in the future -
@arminunruh this would be super nice! <3
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it