Title: ReferenceError: datepickerLang is not defined
Last modified: June 20, 2024

---

# ReferenceError: datepickerLang is not defined

 *  Resolved [nikkelsenr](https://wordpress.org/support/users/nikkelsenr/)
 * (@nikkelsenr)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/)
 * Hey there,
 * I have discovered a problem on my website. I use the[ Beds24 Plugin Version 2.0.25](https://wordpress.org/plugins/beds24-online-booking/)
   to make vacation rentals bookable via the website. I also use an inquiry and 
   lead form from Forminator. Unfortunately, the calendar popup no longer works 
   when I click on a date field. I have noticed that the error with the popup only
   occurs when the beds24 plugin is active. However, the provider (beds24) says 
   that the error should be fixed by you as it is a variable that is not used by
   their plugin. It would be great if you could take a look at this, otherwise I
   would have to switch to another form, which I would find a great pity.
 * This is the message i receive in the console: 
   _ReferenceError: datepickerLang
   is not defined_Looking forward for your message!
 * Best regards! 
   – Niklas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-datepickerlang-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17840601)
 * Hi [@nikkelsenr](https://wordpress.org/support/users/nikkelsenr/)
 * I hope you are doing well today.
 * I made a test on my lab site with the Beds24 Online Booking plugin and I was 
   not able to replicate this issue. Please note I tried to change different settings
   in that plugin and none of those triggered this error.
 * In the first place, this error sounds like some missing Forminator files after
   an update. Can you download the current Forminator version, log in to FTP replace
   all Forminator files and folders, and see will that gives positive results?
 * If that will not help, please export your form, upload it to Google Drive, and
   share a link in your next reply, so that we can test it on our side. Also, it
   will be good to give us a screenshot from this page on your site: _/wp-admin/
   options-general.php?page=beds24-admin-menu (settings page). _**NOTE: Please blur
   or hide those values on that screenshot:**
 * **Beds24 Owner Id:
   Beds24 Property Id:Custom URL Parameters:
 * **as this is public forum.**
 * Kind Regards,
   Kris
 *  Thread Starter [nikkelsenr](https://wordpress.org/support/users/nikkelsenr/)
 * (@nikkelsenr)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17841471)
 * Hello Kris,
 * Thank you very much for your message! I am now one step further. I have now discovered
   that the error between Forminator and the Beds24 plugin only occurs if my “Kadence”
   theme is active at the same time. With a default WordPress theme “Twenty-Twenty-
   Four” the conflict between the two plugins does not occur.
   Now it’s getting crazy:
   In the “Page Builder” of Kadence (Kadence Blocks) the popup (date field) can 
   still be opened regularly. Even with a ready-made form from you. However, as 
   soon as I switch to the live page for the visitor, the error described and the
   log in the console appear.
 * Unfortunately, replacing the files has not brought any improvement. Enclosed 
   you will find the desired screenshot: [https://ibb.co/7KXc3P0](https://ibb.co/7KXc3P0)
   
   In fact, the settings should also be the default setting. I work with the shortcode
   options of the plugin to get the booking widgets.
 * Best regards! 
   Niklas
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17841510)
 * Hi again [@nikkelsenr](https://wordpress.org/support/users/nikkelsenr/)
 * Please email us at: [wpsupport@incsub.com](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/wpsupport@incsub.com?output_format=md)
   
   Subject: ATTN: WPMU DEV support – wp.org
 * Please send:
   – Link back to this thread for reference ([https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17841471))
   so that we can review this case more for you and see what will be possible in
   this case.
 * Kind Regards,
   Kris
 *  Plugin Support [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * (@wpmudevsupport3)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17844757)
 * Hi [@nikkelsenr](https://wordpress.org/support/users/nikkelsenr/),
 * Hope this message finds you well, and sorry to hear you are experiencing this
   issue.
 * We were able to reproduce the issue on our end too, it seems Beds24 Online Booking
   + Forminator + Theme builder (like Kadence, Elementor, and probably others) is
   creating a conflict, that is not only related to only Kadence.
 * In such a case, I escalated this conflict to our Second Line Support, they will
   check further and provide more information about it. Since they work on complex
   issues, getting a reply from them could take more time than usual, we will back
   to this topic once we get a reply from them.
 * Best regards,
    Laura
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17845523)
 * Hi [@nikkelsenr](https://wordpress.org/support/users/nikkelsenr/),
 * Could you please try this snippet and see whether it helps?
 *     ```wp-block-code
       <?phpadd_action( 'wp_enqueue_scripts', 'wpmudev_dequeue_beds24_datepicker', 9999 );function wpmudev_dequeue_beds24_datepicker() {	global $post;	if ( is_a( $post, 'WP_Post' ) && ! has_shortcode( $post->post_content, 'forminator_form' ) ) {		return;	}	wp_dequeue_script( 'beds24-datepicker' );}
       ```
   
 * You can implement the above code using mu-plugins. Please check this link on 
   how to implement the above code as a mu-plugins:
   [https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * Please do note that it would be better to not use the Beds24 shortcode on pages
   where you already have the Forminator form due to the compatibility issues noticed.
 * Please do check and let us know how the above snippet goes.
 * Kind Regards,
 * Nithin
 *  Thread Starter [nikkelsenr](https://wordpress.org/support/users/nikkelsenr/)
 * (@nikkelsenr)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17858683)
 * Hi Nithin,
   sorry for the late reply. I was traveling without my computer and 
   couldn’t test your code until today. I have successfully uploaded the “plugin”
   using the instructions you sent and now the date picker is working again as usual.
   Super! Will it stay with this workaround for the time being or will you try to
   bring a bug fix in one of the upcoming updates? I can live with it for now and
   thank you very much for your support in this case!
 * Many thanks and best regards from Germany!
 * – Niklas
 *  Plugin Support [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * (@wpmudevsupport3)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17859427)
 * Hi [@nikkelsenr](https://wordpress.org/support/users/nikkelsenr/),
 * Glad to hear the snippet solved the issue.
 * The permanent fix will be coming in future releases, but, I am afraid we can’t
   provide which one or an ETA. Stil, please check the Changelog for future references.
 * Best regards,
    Laura

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ReferenceError: datepickerLang is not defined’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 7 replies
 * 4 participants
 * Last reply from: [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/referenceerror-datepickerlang-is-not-defined/#post-17859427)
 * Status: resolved