Uncaught TypeError: $(...).once is not a function

Created on 18 November 2022, about 2 years ago
Updated 20 March 2023, almost 2 years ago

Problem/Motivation

When loading a page with colorbox, the following JS error appears in the browser console:

Uncaught TypeError: $(...).once is not a function
    at Object.attach (colorbox.js?v=9.4.8:30:10)
    at drupal.js?v=9.4.8:27:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=9.4.8:24:34)
    at drupal.init.js?v=9.4.8:29:12
    at HTMLDocument.listener (drupal.init.js?v=9.4.8:17:7)

inspecting the Object attach indicates that it comes from /modules/contrib/colorbox/js/colorbox.js?v=9.4.8

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇺🇸United States kwfinken Lansing, MI

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.

Production build 0.71.5 2024