-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp.utils.WordCounter is not a constructor #5118
Comments
Do you have any other plugins active? If yes, can you test it without the other and activate them step by step? Edit: I can reproduce this error with Polylang, if I add two languages and open the editor. |
Ok, I investigated the issue and it seems that the culprit is indeed the Polylang plugin: |
The culprit is not exactly Polylang. wp.utils.WordCounter is a function of WordPress Core and I reproduce this case only when Gutenberg is activated, Polylang declare one language and when javascript files are concatenated. When I define the constante CONCATENATE_SCRIPTS to false, I have no js error. I corrected this issue by loading our Polylang js script in the header. It is now avalaible in our master branch and will be available in our next release |
This is fixed in the latest version of Polylang (2.3.4): |
Issue Overview
Since 2.2 I'm getting the following error when adding or editing a post:
Steps to Reproduce (for bugs)
Firefox and Chrome
Expected Behavior
Current Behavior
Possible Solution
Screenshots / Video
Related Issues and/or PRs
The text was updated successfully, but these errors were encountered: