Hi everyone,

I use Panopoly via the distribution OpenAtrium version 7.x-2.68.

I have a weird bug which happen only on production. This bug happen with many components but it's always the same.

When I click on the button Linkit, the modal try to open but never finished to load and I have only a empty modal. Additionally, I have the javascript error in the Chrome console
Uncaught TypeError: $(...).once is not a function

With Chrome, I can see this error is launch by the line.

$(captions).once('panopoly-images').imagesLoaded(function () {

in the file profiles/openatrium/modules/panopoly/panopoly_images/panopoly-images.js, line 5

This bug happens too if I click on buttons below the WYSIWYG to add Media Gallery, Snippet, etc, it happens too if I download files on a file fields.

I try to reproduce the bug in development. But even with the same code and the same database, these components work normally. If I inspect the object "captions" in the javascript, it seems different than in production on the same node but I don't understand how this part works. And I don't know what could have an influence on the different servers to work in development and not in production.

Comments

Calystod created an issue. See original summary.

clairedesbois@gmail.com’s picture

Version: 7.x-1.x-dev » 7.x-1.40