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

Errors in console after activate plugin #4

Open
webspilka opened this issue Jan 14, 2019 · 4 comments
Open

Errors in console after activate plugin #4

webspilka opened this issue Jan 14, 2019 · 4 comments

Comments

@webspilka
Copy link

Hi I get errors after activate plugin

mediaelement-and-player.min.js?ver=4.2.6-78496d1:12 Uncaught TypeError: Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters
    at Object.s.language (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
    at Object.5.15 (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
    at i (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
    at e (mediaelement-and-player.min.js?ver=4.2.6-78496d1:12)
    at mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
s.language @ mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
5.15 @ mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
i @ mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
e @ mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
(anonymous) @ mediaelement-and-player.min.js?ver=4.2.6-78496d1:12
mediaelement-migrate.min.js?ver=4.9.7:1 Uncaught ReferenceError: MediaElementPlayer is not defined
    at mediaelement-migrate.min.js?ver=4.9.7:1
    at mediaelement-migrate.min.js?ver=4.9.7:1
(anonymous) @ mediaelement-migrate.min.js?ver=4.9.7:1
(anonymous) @ mediaelement-migrate.min.js?ver=4.9.7:1
load-scripts.php?c=1&load[]=jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jque&load[]=ry-ui-dialog,wpdialogs,hoverIntent,common,admin-bar,wp-util,wp-a11y,updates,plugin-install,svg-painter,heartbeat,wp-auth-check,j&load[]=query-ui-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,backbone,wp-backbone,media-models,wp-plupload,wp-medi&load[]=aelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit&ver=4.9.7:384 Uncaught TypeError: b(...).not(...).filter(...).mediaelementplayer is not a function
    at HTMLDocument.a (load-scripts.php?c=1&load[]=jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jquery-ui-position,jque&load[]=ry-ui-dialog,wpdialogs,hoverIntent,common,admin-bar,wp-util,wp-a11y,updates,plugin-install,svg-painter,heartbeat,wp-auth-check,j&load[]=query-ui-sortable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,backbone,wp-backbone,media-models,wp-plupload,wp-medi&load[]=aelement,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit&ver=4.9.7:384)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload,moxiejs,plupload&ver=4.9.7:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload,moxiejs,plupload&ver=4.9.7:2)
    at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload,moxiejs,plupload&ver=4.9.7:2)
    at HTMLDocument.K (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,underscore,thickbox,shortcode,media-upload,moxiejs,plupload&ver=4.9.7:2)
@vyskoczilova
Copy link
Owner

Hi, I have seen this kind of weird issue when somebody used a deprecated image method, could you send me the list of plugins you use? Do you catch something else with WP debug?

@webspilka
Copy link
Author

I use
php 7.2
WordPress 4.9.7
Contact Form 7 v 5.1.1
Houzez Login Register v 1.5.2
Houzez Theme - Functionality v 1.5.2
Loco Translate v 2.2.0
Redirection v 3.6.3
Reveal IDs 1.5.3
Slider Revolution 5.4.8
SVG Support 2.3.15
Webcraftic Cyr to Lat reloaded 1.1.1
WP Cerber Security, Antispam & Malware Scan 7.9.7
WPBakery Page Builder 5.5.2
Yoast SEO 9.4

I do not see other any mistakes, even when I turn on debugging

@vyskoczilova
Copy link
Owner

Ok, I will have a look (later on, after the New year I'm still in rush). Anyway, this plugin it's kind of duplication of the WP function - a couple of versions back, you can choose your language in Profile settings.

@mohsinr
Copy link

mohsinr commented Jun 14, 2019

Hi,
Thanks for the lovely plugin. I was facing same issue on Multisite:
TypeError: Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters mediaelement-and-player.min.js:12:4331

Choosing language for my user in the Profile Settings, helped me fix the issue, thank you!

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

No branches or pull requests

3 participants