• Resolved wp1983

    (@wp1983)


    Hi, dates on calendar are not selectable and there is an error in console – Uncaught TypeError: jQuery(…).vboDatesRangePicker is not a function. The problem is there since the last update of the Vik Booking plugin, I tried to solve it but I couldn’t.

    Could you help me?
    Thank you

    Stefania

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi Stefania,

    Thanks for your message. We confirm the date-picker calendars are not working due to multiple JavaScript errors. However, the error you saw from the browser console is the consequence of a previous error.

    More precisely, your Theme is loading every JavaScript asset (script) in a “deferred” way, and so extending some jQuery native functionalities fails when executing certain inline-scripts even when the DOM ready event is fired.

    In the future we could prevent such JavaScript errors in case of jQuery deferred exceptions, but right now some scripts or assets may not be truly available when the DOM is ready, hence when the page has loaded all scripts, and this leads to errors just like in your case. This is because the DOM-ready event indicates that all assets have been loaded and can be, therefore, used.

    Our suggestion is to turn off any jQuery deferred loading settings in your Theme to quickly fix the issue and restore the date-picker calendars. Alternatively, you can get in touch with our team through our website so that we can try to suggest another solution for preventing such errors with your current JS assets loading preferences.

    Also, this issue has got nothing to do with the recent VikBooking updates. This issue was probably introduced by the update of other plugins or your Theme, if you said it just started to happen.

    The VikWP Team

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Just an update for those who will read this thread: the JavaScript errors were caused by the Theme, which was erroneously loading a local version of jQuery 3.6.0 rather than using the WordPress native framework and assets for jQuery and jQuery UI.

    This erroneous action made by the Theme was loading duplicate jQuery libraries, by resetting any jQuery UI plugin that was previously loaded, like the “jQuery UI Datepicker” used by VikBooking, that ships with WordPress by default.

    By stopping the theme from loading these duplicate JavaScript libraries for jQuery, the issue was fixed.

    The VikWP Team

    Thread Starter wp1983

    (@wp1983)

    Hi, thank you very much for solving this issue, despite the problem being caused by the theme and not by your plugin, I have never found such kind and helpful support before.

    Thank you so much
    Stefania

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

The topic ‘Dates on calendar not selectable’ is closed to new replies.