Jetpack: Likes: en.ca Doesn't Exist

Created on 20 Apr 2018  Â·  23Comments  Â·  Source: Automattic/jetpack

Steps to reproduce the issue

  1. Enable the Likes module.
  2. Go to Settings → General.
  3. Change the site language to English (Canada).
  4. Load a post. Notice the following pop up:

screen shot on 2018-04-19 at 17_40_06

  1. Also a 404 error in the console for the GET request to https://widgets.wp.com/languages/en-ca.json?ver=20171126.

@richardmtl helped to test this one and also got this weird error in the console at one point:

https://s0.wp.com/_static/??/wp-content/js/postmessage.js,/wp-content/js/jed/jed.js,/wp-content/js/wpcom-proxy-request.js,/wp-content/js/likes-rest-nojquery.js?m=20180221

Now change the site language to English (US). No more errors.

Reported here: https://wordpress.org/support/topic/jetpack-plugin-causing-404-error-2/
Similar to #2791

Internationalization Likes [Pri] High [Type] Bug

Most helpful comment

To clarify:

  • The fix is now available on WordPress.com sites.
  • It is not, however, available on self-hosted WordPress sites using the Jetpack plugin (that includes Atomic sites). It will become available on those sites as soon as we release Jetpack 6.1.1, most likely around May 22.

If you use the Jetpack plugin and experience this issue, you will need to wait until the next version of Jetpack is released. Until then, you can deactivate the Likes feature under Jetpack > Settings > Sharing in your dashboard.

All 23 comments

Also in 1115767-zen

1123868-zen

1056460-zen (Woo ticket)

2919836-hc

Site language: es-AR

Also reported on 1132971-zen, very similar as #2791 .

Site language: en-au

Also in 1133240-zen, site language is en-AU

Also in 3288854-hc

Another report: 1133443-zen

site language: nl_BE

2129281-hc, site language was en_CA

Came across two such Atomic sites as well. :/

1133975-zen (Atomic)
Language: en_AU

Also in 3304896-HC.
Site language was in Norwegian.

to confirm the language is being parsed by our languages 404 handler.

Left a ping for @akirk on Slack in #i18n about this.

Here as well: 3024025-HC
Site language: Eng-US

3308571-HC
Site language: EN

1996605-hc
Site Language: en-ca

2869631-hc
English (Australia)

1118635-hc

I've deployed server-side code that removes the alert() dialog. The 404 is not too bad because the fallback is English but the alert box makes it seem like there is a problem. We'll still look into avoiding the 404 in the first place but this should have solved the user-facing issue.

Just to note, the JS file with the alert() in it might still be cached on users' computers, so suggesting to them to clear their browser caches can be a step in order to resolve the issue.

To clarify:

  • The fix is now available on WordPress.com sites.
  • It is not, however, available on self-hosted WordPress sites using the Jetpack plugin (that includes Atomic sites). It will become available on those sites as soon as we release Jetpack 6.1.1, most likely around May 22.

If you use the Jetpack plugin and experience this issue, you will need to wait until the next version of Jetpack is released. Until then, you can deactivate the Likes feature under Jetpack > Settings > Sharing in your dashboard.

1176269-zen
Site language: NB

Was this page helpful?
0 / 5 - 0 ratings