Title: Javascript errors on WP &gt;4.5.4
Last modified: September 12, 2016

---

# Javascript errors on WP >4.5.4

 *  [wiewiorek](https://wordpress.org/support/users/wiewiorek/)
 * (@wiewiorek)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-errors-on-wp-4-5-4/)
 * Hi!
 * On WordPress > 4.5.4 and events-maker v.1.6.11, if you have enabled language 
   other then en_US user interface on admin area is broken. As You can see on the
   image there are some javascript errors in console.
 * ![Javascript errors visible in console](https://i0.wp.com/ibin.co/2upPupbpV9SD.
   png?ssl=1)
 * I’m not exactly sure what causes this behavior, but it’s clearly related to WordPress
   update from 4.5.x to 4.6.x
 * To fix this you have to change:
 *     ```
       wp_register_script(
       	'events-maker-datetimepicker-localization', $lang_path, array( 'jquery', 'events-maker-datetimepicker' )
       );
       ```
   
 * to:
 *     ```
       wp_register_script(
       	'events-maker-datetimepicker-localization', $lang_path, array( 'jquery', 'events-maker-admin-post' )
       );
       ```
   
 * in file **includes/libraries/class-metaboxes.php: ~185** line in method **admin_scripts_styles**
 * As I figured out, if you are using in your WP installation language for which‘
   jquery-ui-timepicker’ translation is provided, then above code is executed and‘
   jquery-ui-timepicker-addon.min.js’ is loaded before ‘jquery-ui-datepicker’, and
   this ‘addon’ is trying to extend ‘datepicker’ which causes js errors and breaks
   user interface.
 * —
    One more thing, I’m using WP pl_PL but I also tried it in de_DE and it_IT.
    -  This topic was modified 9 years, 9 months ago by [wiewiorek](https://wordpress.org/support/users/wiewiorek/).
    -  This topic was modified 9 years, 9 months ago by [wiewiorek](https://wordpress.org/support/users/wiewiorek/).

The topic ‘Javascript errors on WP >4.5.4’ is closed to new replies.

 * ![](https://ps.w.org/events-maker/assets/icon-256x256.png?rev=1574084)
 * [Events Maker by dFactory](https://wordpress.org/plugins/events-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/events-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-maker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wiewiorek](https://wordpress.org/support/users/wiewiorek/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-errors-on-wp-4-5-4/)
 * Status: not resolved