Skip to content
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

media-credit.js causing errors #160

Open
bonifacp opened this issue Nov 6, 2020 · 2 comments
Open

media-credit.js causing errors #160

bonifacp opened this issue Nov 6, 2020 · 2 comments
Labels

Comments

@bonifacp
Copy link

bonifacp commented Nov 6, 2020

media-credit.js appears to be loading on user-facing TinyMCE instances, and is causing a javascript error (copied below).

This error can be replicated on any front-facing TinyMCE instance, such as a GravityForms rich text field, or Asgaros Forums. The issue prevents submission of any text in the TinyMCE instance.

Commenting out the contents of this file allows TinyMCE to function normally.

Uncaught TypeError: wp.shortcode is undefined media-credit.js:46:11 _do_shcode https://registrar.washington.edu/wp-content/themes/uw-2014/assets/admin/js/media-credit.js?wp-mce-49100-20200624:46 init https://registrar.washington.edu/wp-content/themes/uw-2014/assets/admin/js/media-credit.js?wp-mce-49100-20200624:15 t https://registrar.washington.edu/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js?ver=49100-20200624:1 fire https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 fire https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 $w https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 setContent https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 load https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 bw https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 ww https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Aw https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ow https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 jt https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 n https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 onload https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 jt https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 loadScripts https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 loadQueue https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ow https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 waitFor https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ow https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 jt https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 n https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 onload https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 jt https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 u https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 loadScripts https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 loadQueue https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ow https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ow https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Bw https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 render https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 n https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 e https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 jt https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 e https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 C https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 d https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 a https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 xe https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 Ee https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 bind https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 <anonymous> https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2 <anonymous> https://registrar.washington.edu/wp-includes/js/tinymce/tinymce.min.js?ver=49100-20200624:2

@lcaple
Copy link
Contributor

lcaple commented Apr 14, 2021

I know there's a conflict between our version of TinyMCE plugin implementation for Media Credit and the latest version of TinyMCE. We're in the process of doing a major update and we'll be overhauling the plugin to work with the latest TinyMCE.

@lcaple lcaple added the Bug label Apr 14, 2021
@dghweb
Copy link

dghweb commented Feb 1, 2023

the media-credit.js script is still causing the occasional headache. I also disable this script on my sites where it breaks the rendering.

Uncaught TypeError: Cannot read properties of undefined (reading 'replace') at t.<computed>.t.<computed>._do_shcode (media-credit.js?wp-mce-49110-20201110:46:31) at tN.<anonymous> (media-credit.js?wp-mce-49110-20201110:15:33) at tN.t (wp-tinymce.js?ver=49110-20201110:11:400) at c.fire (wp-tinymce.js?ver=49110-20201110:3:197006) at tN.fire (wp-tinymce.js?ver=49110-20201110:3:197532) at $w (wp-tinymce.js?ver=49110-20201110:3:340139) at tN.setContent (wp-tinymce.js?ver=49110-20201110:3:347647) at tN.load (wp-tinymce.js?ver=49110-20201110:3:347006) at bw (wp-tinymce.js?ver=49110-20201110:3:328168) at ww (wp-tinymce.js?ver=49110-20201110:3:330246)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants