How To Fix “TypeError: Language code” JavaScript Errors in WordPress

PROBLEM Wordpress site broken with Javascript errors with zero plugins or themes installed. The issue followed different devices, OS’es and different browsers. SOLUTION User account corrupted. The wp_usermeta locale field had an invalid value of “regular”, and nulling the field solved the issue. DETAILS JS console shows this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[Error] TypeError: Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters language (mediaelement-and-player.min.js:12:7263) (anonymous function) (mediaelement-and-player.min.js:12:14817) d (mediaelement-and-player.min.js:12:259) r (mediaelement-and-player.min.js:12:414) Global Code (mediaelement-and-player.min.js:12:430) [Error] ReferenceError: Can't find variable: MediaElementPlayer (anonymous function) (mediaelement-migrate.min.js:1:363) Global Code (mediaelement-migrate.min.js:1:1179) [Error] TypeError: undefined is not a function (near '...).mediaelementplayer(e)}}},n(e.wp.mediae...') initialize (wp-mediaelement.min.js:1:855) i (load-scripts.php:2:27368) fireWith (load-scripts.php:2:28123) ready (load-scripts.php:2:29926) J (load-scripts.php:2:30282) [Error] TypeError: undefined is not an object (evaluating 'd.hasClass') (anonymous function) (wp-auth-check.min.js:1:1538) dispatch (load-scripts.php:3:12375) handle (load-scripts.php:3:9094) trigger (load-scripts.php:3:11494) trigger (load-scripts.php:8:8280) (anonymous function) (load-scripts.php:3:18873) each (load-scripts.php:2:2908) each (load-scripts.php:2:851) trigger (load-scripts.php:3:18846) (anonymous function) (heartbeat.min.js:1:2228) i (load-scripts.php:2:27368) fireWith (load-scripts.php:2:28123) x (load-scripts.php:4:22587) c (load-scripts.php:4:26778) |