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
-
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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it