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

Anonymous’s picture

I was using galleria 1.2.3, so updated to 1.2.4. Now an even funkier error, shown on-screen in a red div:

Fatal error: Could not extract a stage height from the CSS. Traced height: 0px.

with this code

a);}else b&&!J&&(J=!0,b=!1,d("Image ga...height:this.height,width:this.width}; 
Anonymous’s picture

I added a CSS line to my custom.css

.galleria-content {
  height: 300px;
}

That fixes the problems. Can we add a "default" height to avoid this error in the future?

kroimon’s picture

Priority: Major » Normal

You 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.

kroimon’s picture

Status: Active » Fixed

Added 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

revjtanton’s picture

This 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.

tmsimont’s picture

I had the same issue -- found that in my theme (i was using twitter bootstrap) there was a class definition:

.hidden
{
display:none;
visibility:hidden;
}

This was causing the height extraction to fail. By removing that class, I fixed it.

batnix’s picture

Hi 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

tmsimont’s picture

is there anything else in your css that could be making a container of the gallery hidden?