vyskoczilova / Simple-Admin-Language-Change

WP plugin that lets you change your dashboard language quickly and easily from the admin bar as often as you need.
7 stars 4 forks source link

Errors in console after activate plugin #4

Open webspilka opened 5 years ago

webspilka commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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!