Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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 1.1k Views 1 Watching
  • 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
    J
    John
    wrote on last edited by John
    #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
    0
    • J John

      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
      J
      John
      wrote on last edited by John
      #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
        J
        John
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on 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
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on 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
            0
            • arminunruhA arminunruh

              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
              J
              John
              wrote on last edited by
              #6

              @arminunruh this would be super nice! <3

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              A
              Anna_S
              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.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search