JS error when trying to display a field of type "BAT Calendar Unit Type Reference"

Created on 4 January 2018, almost 7 years ago
Updated 14 January 2024, 11 months ago

Hi,

I have an error when I try to display a node with a field of type "BAT Calendar Unit Type Reference".

I have configured the whole BAT data (when I go on the page admin/bat/calendar/1/dispo_salle_de_reunion I can see the calendar).
I have added a new field of type "BAT Calendar Unit Type Reference" in a content type, in order to display the calendar in my node template. When I go in the node edit page, I can see the calendar when i click on the node preview button.

Now, when i go on the node page, the calendar is not displayed and i have a JS error in the console :

JQuery is not defined.

This error comes from the file bat/modules/bat_calendar_reference/js/bat_calendar_reference.js.
When i look in the network trace of the browser i can see that this JS file is loaded after all the others JS files. I don't understand why Drupal load this JS file before all his dependent JS files like Jquery.js, Drupal.js, etc. Maybe there is an error in the module bat_calendar_reference : JS dependencies not loaded correctly ? In the node preview mode, the bat/modules/bat_calendar_reference/js/bat_calendar_reference.js is not loaded before all.

Thank you very much for your help.

🐛 Bug report
Status

Closed: outdated

Version

1.33

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy afagioli Rome

    No more support for BAT on Drupal 7.
    Latest BAT for Drupal 10 has full support from the Community and most of the bugs fixed.
    Consider upgrading.

Production build 0.71.5 2024