Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Multilingual with qTranslate-X or XT

Multilingual with qTranslate-X or XT

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 428 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John
    wrote on Sep 10, 2019, 7:13 AM last edited by John Sep 10, 2019, 6:59 AM
    #1

    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!

    J 1 Reply Last reply Sep 10, 2019, 11:06 AM
    0
    • J John
      Sep 10, 2019, 7:13 AM

      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!

      J Offline
      J Offline
      John
      wrote on Sep 10, 2019, 11:06 AM last edited by John Sep 10, 2019, 7:07 AM
      #2

      @john

      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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        John
        wrote on Sep 11, 2019, 9:09 AM last edited by
        #3

        Just curious: Is anyone able to get qTranslate XT working?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Sep 12, 2019, 7:09 AM last edited by
          #4

          Dear @John
          we will look into this as well.
          There seems to be some issues with this plugin.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Sep 13, 2019, 12:25 PM last edited by
            #5

            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

            J 1 Reply Last reply Sep 17, 2019, 9:21 AM
            0
            • A arminunruh
              Sep 13, 2019, 12:25 PM

              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

              J Offline
              J Offline
              John
              wrote on Sep 17, 2019, 9:21 AM last edited by
              #6

              @arminunruh this would be super nice! <3

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes

              1/6

              Sep 10, 2019, 7:13 AM


              I also code custom websites or custom Lay features.
              💿 Email me here: 💿
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. 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:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search