• Resolved Christoffer

    (@riisdesign)


    Hi there!

    When I click on my default language after having another language chosen, nothing happens. It just reloads briefly and it looks like a broken redirect or something.

    I also receive 3 warnings and 8 notices in my PHP debugger. The warnings return:

    get_class() expects parameter 1 to be object

    I hope there’s a solution to this or one coming soon because it makes the plugin rather useless for me ATM.

    Thanks,
    Chris

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 15 replies - 1 through 15 (of 60 total)
  • Plugin Author Gunu

    (@grafcom)

    Hello Chris,

    Does it also happen in the minimal configuration, like theme “Twenty Fifteen” with -x the only plugin?

    Best

    Thread Starter Christoffer

    (@riisdesign)

    Hi Gunu,

    Thanks for your quick reply!
    I did what you told me to, but unfortunately without any luck :/

    Thread Starter Christoffer

    (@riisdesign)

    I’m currently working locally, but I’ve now debugged further.

    When I click the default language on the front-end I can see it starts to refresh but then it just stops. However, when I use Query Mode (?lang=en) it works. I’ve tried flushing my permalinks as well.

    Another interesting thing is that the default language links to e.g. https://website.com/en/ when it should actually be linking to https://website.com/. If I enter the latter URL it works.

    I hope this helps Gunu and thanks for your assistance so far ??

    Plugin Author Gunu

    (@grafcom)

    Under – Settings – Languages – General Settings – Default Language / Order – How this is set?

    Show displayed language prefix when content is not available for the selected language. Unchecked?

    Advanced Settings – Use Pre-Path Mode (Default, puts /en/ in front of URL). SEO friendly. is checked?

    Hide URL language information for default language. Checked?

    Permalinkgs set to Post name?

    Edit: Delete cookies for clean start.

    Thread Starter Christoffer

    (@riisdesign)

    Norsk (default) -> Svenska -> English

    Tried both, but left checked for now.

    Use Pre-Path Mode is when it doesn’t work.

    Interesting: If I uncheck the hiding of URL language info it works with Pre-Path Mode as well!
    That means it’s a combination of the Pre-Path Mode and the hiding.

    Permalinks are set to postname.

    Deleted all the qtrans cookies without any luck.

    Plugin Author Gunu

    (@grafcom)

    How is your .htaccess set?

    Thread Starter Christoffer

    (@riisdesign)

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /procano/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /procano/index.php [L]
    </IfModule>
    Plugin Author Gunu

    (@grafcom)

    Seems correct.

    Do you have the opportunity to put a copy of the site on a server so I can also see it?

    If not, if you could send me a copy of all files including a copy of the complete database I can put the site here on a server if it contains at least no confidential information. Then we can look together.

    You will also have to make a temporary administrator.

    If so, use wetransfer.com for it

    Another interesting thing is that the default language links to e.g. https://website.com/en/ when it should actually be linking to https://website.com/. If I enter the latter URL it works.

    Same problem here, have you solved?

    Plugin Author Gunu

    (@grafcom)

    @baga.

    Do you have the opportunity to put a copy of the site on a server so I can also see it?

    Hi Gunu,
    i’ll be able to put a copy of the site on a server in the next few days.
    I’ll let you know when I’m ready.
    Thanks!

    same for me on a local test server after migrating from mqtranslate.

    Having the same problem here, with 3 different WP installations. VERY annoying…

    Example:
    View my latest photo report here. It’s a German article. German is the default language of my website and set as #1 language in qTranslate X settings.

    Then switch to English using the language picker in the header image or use this link

    Now the website keeps on redirecting you to English content, no matter what URL you call; so just use the language picker in the header image again or use this link

    The funny thing: Once I explicitely add the default language code in front the URL then the correct content gets displayed again and no automatic redirection occurs.

    (Forcing Pre-Path Mode to use DE as actually no DE has to be used as DE is default language)
    https://www.xflow.eu/de/2015/02/19/victoriafaelle-simbabwe/

    PS: Enabling/disabling the option “Detect the language of the browser and redirect accordingly” shows absolutely no effect…

    Plugin Author Gunu

    (@grafcom)

    @xflow,

    how is your language chooser set?

    Do you use the widget in a menu?

Viewing 15 replies - 1 through 15 (of 60 total)
  • The topic ‘Default language can't be chosen’ is closed to new replies.