• Hi there

    we really like and appreciate the Polylang plugin. However we have a problem. Here’s how to see it:

    Open the site in Chrome (mac or pc)
    https://kanadaplus.net/

    Click the Canadian flag to switch to the English version.
    Close the browser program.
    Reopen the browser.
    Try to the open the site.
    https://kanadaplus.net/

    We get a ‘nothing found’ error.
    It is possible to click on the English or German flag to get to the content, but my client is concerned about how it looks to have an error as soon as someone returns to the site.

    Is there a way to avoid this?
    By the way, this doesn’t seem to be a problem in Mac/Firefox.
    It does happen in Mac Safari as well as Windows Explorer.

    Thanks very much for your hard work and contribution.

    Cheers
    John Dowler

    https://www.ads-software.com/extend/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I just tried this for you in IE and Firefox, following the steps you outlined.

    After re-opening the browser, the DE page loads with no error messages.

    So it seems to be okay, the only strange thing is the language cookie isn’t used to display the EN page as it is now the preferred language. Did you set the option in Settings to “Detect browser language?

    From the Documentation:

    Check this option and when someone will visit your homepage for the first time it will be displayed according to his browser preferences. If his browser preferences do not include any language of your site, the default language will be used.

    Thread Starter john.dowler

    (@johndowler)

    Thanks for looking. We only get the problem when we leave from the English home page. Mac firefox is okay with it, but Mac Chrome for example doesn’t find the English home page.

    I tried setting the page to ‘detect browser language’. I also tried this setting: “When using static front page, redirect the language page (example: https://www.kanadaplus.net/en/) to the front page in the right language “

    Then I get the following error upon loading in Safari, for example:
    Parse error: syntax error, unexpected T_ENDIF in /home/saskia/public_html/wp-content/themes/Kanadaplus/content.php on line 16

    Hi! I’m using Win7 x64

    Chrome 24.0.1312.52 m

    1. Open web
    2. Change language to EN
    3. Close & Reopen browser
    4. Visit the web: opened safely with DE content

    Firefox 18.0
    (same result)

    Thread Starter john.dowler

    (@johndowler)

    Hi all,

    well, I didn’t figure out the source of the problem exactly. Very interesting that you didn’t get the same problem, Weeix – thanks for trying it out! I still had the problem on a Mac using Chrome and my client had it on his PC in Chrome as well – weird.

    However, I did find a getaround. I had tried a redirect using the .htaccess file, and that had not worked. But I finally tried creating a /en/ folder and put a blank index.html file in there, with a redirect in the header. That worked. So it’s not a perfect solution, but after banging my head against the wall it seems good enough to me.

    Cheers
    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nothing found when visitor returns to site’ is closed to new replies.