Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am displaying images and image titles in views using masonry. The grid layout looks fine for admin user but for anonymous user, everything displays in one column only. Not sure if this is a bug or an incorrect configuration.
Comment | File | Size | Author |
---|---|---|---|
#5 | masonry_not_working_for_anonymous--2696293-5.patch | 830 bytes | Dom. |
#4 | masonry_not_working_for_anonymous--2696293-4.patch | 828 bytes | Dom. |
Comments
Comment #2
Dom. CreditAttribution: Dom. commentedAcknowledged, I will have a look.
Comment #3
shevatvb CreditAttribution: shevatvb commentedSame issue here.
I'm getting this error from console
Uncaught TypeError: $container.once is not a function masonry.js?o4unuz:94
Comment #4
Dom. CreditAttribution: Dom. commentedHi!
Very nice catch: this is a stupid problem ! (~50 sites uses the D8 version, you are the first to report it !). The Jquery Once library is used so widely in core and on contrib modules that the chance to not use another module that loads it is low. I guess that's why no-one noticed it. (also proof that my dev environment has too much modules now ^^)
A patch is attached; one line correction: declare the dependency on jquery once !
After patch, you need to clean cache to take effect, or to run update.php: the patch contains an update method that will clean it for your.
Comment #5
Dom. CreditAttribution: Dom. commentedBetter comment on update.php method !
Comment #6
shevatvb CreditAttribution: shevatvb commentedHi Dom!
Thank you so much!
It works now! You were super fast!
Thanks again!
Comment #7
Dom. CreditAttribution: Dom. commentedCommited on dev-branch
Comment #8
Dom. CreditAttribution: Dom. commentedComment #10
cancerian7 CreditAttribution: cancerian7 commentedNot fixed in latest dev. I have to implement this patch manually.
Comment #11
gemalmThis patch works for me in Drupal 8.
Comment #12
dadderley CreditAttribution: dadderley as a volunteer and commentedI am having the same issue as the original poster.
Also I cannot get the patch to work.
Strangely enough I have another Drupal 8.8.4 site where this problem does not happen.
Really odd.
Comment #13
joshuautley CreditAttribution: joshuautley commented#5 worked for me using Drupal Version 8.9.1
Thank you!
Comment #14
fabiana_matos CreditAttribution: fabiana_matos commentedI am having the same issue as drupal 9.1.0 and Masonry 8.x-1.2
I implemented the patch manually and it didn't work