• Resolved tzepx

    (@tzepx)


    Hello and congrats for this useful plugin!

    Please help regarding the following problem:

    Site uzinadezambete.ro, using standard twentythirteen with qtranslate-x beside multiple other plugins, with option “Hide URL language information for default language” set to on, three langs: default-ro/en/it, different slug for each page/post. No problem going from default to en/it, or between en/it. same on firefox/opera/chrome/ie.

    – from site/en with click on default-lang-flag, hoover shows site/default but going to site/en
    – from site/en/page-slug-en with click on default-lang-flag, hoover shows site/default/page-slug-default, page change to site/en/page-slug-default.
    – same for it

    here https://ww.wp.xz.cn/support/topic/site-redirection-to-other-languages?replies=2 you suggest to remove cookies, but this does’n change the behavior, i even setup one browser to no cookies at all.

    here https://ww.wp.xz.cn/support/topic/language-switch-problem-firefox?replies=20 are multiple posibilities: disabling all other plugins doesn’t fix, with hide url off it goes well – but that’s not what i want, with esc_url( home_url( ‘/’ ) doesn’t fix.

    here https://ww.wp.xz.cn/support/topic/cant-switch-back-to-default-language?replies=5 i’m confised about && isset($_SERVER[‘REDIRECT_STATUS’]);, and following https://qtranslatexteam.wordpress.com/2015/02/26/browser-redirection-based-on-language/ puts me on the “one may expect the URL without a language to be always resolved to the default language” side, but since hoover shows correct url i can only guess that there is something else going wrong after.

    .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache

    https://ww.wp.xz.cn/plugins/qtranslate-x/

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

    (@grafcom)

    @tzepx

    You use qTranslate Slug?

    If so, deactivate this plugin and see if that makes a difference.

    Thread Starter tzepx

    (@tzepx)

    with qtranslate-x slug deactivated:
    -links changed to site/default-slug or site/en/default-slug or site/it/default-slug
    – still doesn’t go back to default lang

    with all plugins (except qtranslate-x) deactivated, it behave the same.

    Plugin Author Gunu

    (@grafcom)

    if you remove this from your .htaccess that makes a difference?

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache

    Can you give me a link to your site?

    Thread Starter tzepx

    (@tzepx)

    with .htaccess changes – still same behavior.

    site is uzinadezambete.ro, thank you.

    Plugin Author Gunu

    (@grafcom)

    @tzepx

    which version of qTranslate you use?

    Apache or Nginx server?

    Thread Starter tzepx

    (@tzepx)

    wp 4.2.2
    qtranslate-x 3.3
    Apache/2.4.7 (Ubuntu)

    Plugin Author Gunu

    (@grafcom)

    The next you could try – Import export – Reset qTranslate

    Check this box and click Save Changes to reset all qTranslate settings.
    and
    Yes, I really want to reset qTranslate.

    You must then enable your languages again.

    Thread Starter tzepx

    (@tzepx)

    full back-up before 🙂
    check both “Check this box and click Save Changes to reset all qTranslate settings.” and “Yes, I really want to reset qTranslate. “

    then enable ro/it, disable de, default ro, ro up above en
    same behavior

    Plugin Author Gunu

    (@grafcom)

    do you want to deactivate qTranslate Slug once so I can here see if there is a difference?

    Let me know.

    Thread Starter tzepx

    (@tzepx)

    update: firefox cookies on it seems that it’s working
    opera cookies off getting:

    This webpage has a redirect loop
    The webpage at http://uzinadezambete.ro/preturi/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    but double refresh is getting where it is supposed to

    Plugin Author Gunu

    (@grafcom)

    Here with Firefox it now works – clean approach to the website

    Thread Starter tzepx

    (@tzepx)

    with small updates on menu following reset, firefox with cookies=on version is working!

    HURRAY! thanks!

    regarding opera with cookies=off, wrong behavior is continued.
    with qtrans-slug deactivated both versions behave the same: firefox cookies on navigation ok, opera cookies off initial navigation with problems.
    i’m letting qtrans-slug off if you want to investigate further for cookies=off version.

    Plugin Author Gunu

    (@grafcom)

    regarding opera with cookies=off, wrong behavior is continued.

    And with cookies=on?

    Thread Starter tzepx

    (@tzepx)

    opera cookies=on behave normal, as it should be.

    Thread Starter tzepx

    (@tzepx)

    huge thanks, i will comeback in several hours.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘back to default lang’ is closed to new replies.