• The WordPress site in question is accelerated over AWS Cloudfront.

    When I click on the China flag (ie chinese content) what happens:
    (English is the default language set in this site)
    1. The URL shown on the IE browser shows http://www.xxx.com/zh/ (which is correct)
    2. The Header and Footer of the site do not get replaced with Chinese text

    PS: This happens with or without qtrans_front_language.

    It works fine when I access directly to the WordPress site (without CDN)

    Kindly assist.

    Thanks!

    https://wordpress.org/plugins/qtranslate-x/

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

    (@grafcom)

    @glenn.ang

    please read this: Troubleshooting

    Try to reproduce the problem under a simpler configuration with as many plugins off as possible and with one of the standard themes, like “Twenty Fifteen”, “StoreFront”, etc. This may help you to figure out which plugin is in conflict.

    Thread Starter glenn.ang

    (@glennang)

    On further investigation, I realised that XMLHttpRequest was made whenever this issue arises and a 302 is returned with 0 content.
    Any idea what’s the likely cause?

    Below is the HTTP Request captured:
    GET /en/ HTTP/1.1
    Host: http://www.btprivatecollection.com
    Accept: text/html, */*; q=0.01
    Accept-Encoding: gzip, deflate, sdch
    Accept-Language: en-US,en;q=0.8
    Cookie: __utmt=1; qtrans_front_language=zh; __utma=266825949.392743594.1444378529.1444378529.1444380577.2; __utmb=266825949.7.10.1444380577; __utmc=266825949; __utmz=266825949.1444378529.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=GA1.2.392743594.1444378529; _gat=1
    Referer: http://www.btprivatecollection.com/zh/
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
    X-Requested-With: XMLHttpRequest

    HTTP/1.1 302 Found
    Connection: close

    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Date: Fri, 09 Oct 2015 08:55:28 GMT
    Location: http://www.btprivatecollection.com/
    Server: Apache/2.2.31 (Amazon)
    Set-Cookie: qtrans_front_language=en; expires=Sat, 08-Oct-2016 08:55:28 GMT; path=/
    X-Powered-By: PHP/5.3.29

    Plugin Author Gunu

    (@grafcom)

    @glenn.ang

    see my answer / suggestion above, did you do that?

    Plugin Author Gunu

    (@grafcom)

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

The topic ‘Language Selector Bar does not work in CloudFront’ is closed to new replies.