Opened 12 years ago
Closed 12 years ago
#27610 closed defect (bug) (fixed)
JS Translations being looked for in the wrong place
| Reported by: | Ipstenu | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | TinyMCE | Version: | 3.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
- https://wordpress.org/support/topic/visual-post-editor-is-blank
- https://wordpress.org/support/topic/editor-not-visible
In both cases, the plugin is failing because it's looking for JS files that don't exist.
Failed to load: http://domain.tld/wp-content/plugins/cforms/js/langs/ro_RO.js
The actual file is ro.js
NetworkError: 404 Not Found - http://domain.tld/wp-content/plugins/slideshow-gallery/js/tinymce/langs/nl_NL.js nl_NL.js
There is no such file.
The errors don't happen in English. While TinyMCE changed their standards to the normal two-named (ro_RO vs ro), this shouldn't error out, but fallback to (I guess) the plain-jane named version if the file isn't there.
Attachments (1)
Change History (8)
This ticket was mentioned in IRC in #wordpress-dev by ipstenu. View the logs.
12 years ago
#4
@
12 years ago
Same reason in Slideshow Gallery plugin:
https://plugins.trac.wordpress.org/browser/slideshow-gallery/tags/1.3.1/js/tinymce/editor_plugin.js#L7
tinymce.PluginManager.requireLangPack() doesn't cause any issues in 3.8, but leads to a 404 error in 3.9.
#5
@
12 years ago
Slideshow Gallery actually has (kinda) translations: https://plugins.trac.wordpress.org/browser/slideshow-gallery/tags/1.3.1/js/tinymce/langs
So is this due to TinyMCE 4, WP 3.9, or an unholy combo?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Similar report: https://wordpress.org/support/topic/plugin-breaks-visual-editor-39b1-missing-enjs
Caused by
tinymce.PluginManager.requireLangPack('gde')(which doesn't seem necessary):https://plugins.trac.wordpress.org/browser/google-document-embedder/tags/2.5.12/js/editor_plugin.js#L2