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.
After updating to the July 19 devx, the galleria's stopped showing up.
Firebug mentions "Fatal error, Width & height not found" with this snippet:
g.get=function(a){if(t[a])return t[a];...container=f.create("galleria-image");
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI was using galleria 1.2.3, so updated to 1.2.4. Now an even funkier error, shown on-screen in a red div:
with this code
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI added a CSS line to my custom.css
That fixes the problems. Can we add a "default" height to avoid this error in the future?
Comment #3
kroimon CreditAttribution: kroimon commentedYou have to add a height to the option set you're using.
Every optionset (including the default one) should have this included on creation. Did you remove this setting manually or did the upgrade method fail?
I think I should add a soft warning (or hint) message when saving an option set without a height attribute.
Comment #4
kroimon CreditAttribution: kroimon commentedAdded a warning message to the "Edit option set" form when there's no "height" and/or "width" option specified.
I hope this avoids a little confusion in the future.
Comment #6
revjtanton CreditAttribution: revjtanton commentedThis happens for me in Firefox and IE regardless of having height and width specified in the option set. I've used all the defaults and made custom ones. I've tried every way I could find to fix this issue and still it persists. It does work flawlessly in Chrome and Safari.
Comment #7
tmsimont CreditAttribution: tmsimont commentedI had the same issue -- found that in my theme (i was using twitter bootstrap) there was a class definition:
This was causing the height extraction to fail. By removing that class, I fixed it.
Comment #8
batnix CreditAttribution: batnix commentedHi tmsimont,
I'm also using twitter bootstrap in my theme. But I could figure the problem out by removing the hidden class. I really don't know whats the matter and why I can't show the galleria.
I appreciate any kind of hint.
Thanks and best regards,
batnix
Comment #9
tmsimont CreditAttribution: tmsimont commentedis there anything else in your css that could be making a container of the gallery hidden?