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 keep getting javascript errors... already tried jQuery update module. Currently ive updated jquery to version 1.3.x still cant get the slideshow gallery to work!
P.S. Printed screen attached
Comment | File | Size | Author |
---|---|---|---|
screen.PNG | 54.21 KB | julioensivar |
Comments
Comment #1
dealancer CreditAttribution: dealancer commentedsubscribing.
I've tried 1.4.4 version of jquery. Same error.
Error: Fatal error: Width & Height not found.
Source: http://.../sites/all/libraries/aino-galleria-fc65989/src/galleria.js?P
Line: 3475
Comment #2
stefan81 CreditAttribution: stefan81 commentedfound the issue?
Comment #3
dealancer CreditAttribution: dealancer commentedI've tested View Slideshow: Galleria with different revision of Galleria module and see that this error happens with latest revision. However some old revision of galleria is incompatible and causes some other errors.
I've found the revision of Galleria that works fine with this module: http://github.com/aino/galleria/zipball/cf9ab014d15c41ce89faccb258da6612....
I suggest author to update documentation about last module release.
Comment #4
stefan81 CreditAttribution: stefan81 commentedFigured it out. If you define the dimensions of the gallery container it works. For example:
<div id="galleria>" style="width:800px;height:600px;">
Comment #5
dealancer CreditAttribution: dealancer commentedThanks. It worked for me too. I've added following code to my css:
but it is possible to use following one:
Comment #6
dealancer CreditAttribution: dealancer commentedAlso it works after styling galleria.classic.css:
So I'm not sure if it a bug of this module. I think it is an issue of galleria. However ability to manually set width/height will be useful feature.
Comment #7
FezKazi CreditAttribution: FezKazi commentedI tried this... and it didn't work... (setting the .galleria-container width and height)
Comment #8
FezKazi CreditAttribution: FezKazi commentedI even tried putting it in a div... I'm not sure i did it right: (Works fine in firefox!)
Comment #9
FezKazi CreditAttribution: FezKazi commentedUgh... ok i fixed that error... and everything runs fine in Debug mode on Visual Studio:
However, when I publish to the same pc's IIS server (http://faizan.webhop.org/Nikah/Albums.aspx) it doesn't show anything in IE and gives this error:
And in Firefox it just displays all the pics top to bottom....
Funny thing though... when i remove the forward slash (/) before "/Scripts/..." in:
Then in both browsers it displays nothing.
Comment #10
kevinquillen CreditAttribution: kevinquillen commentedAdding width and height worked, as well as using jQuery Update 6.x alpha version.
Can this please be rolled into a new dev or stable (if that is the solution?) It took me hours to track this down. Now the gallery displays.
Comment #11
lijin84100 CreditAttribution: lijin84100 commentedbecause new page is no reference to "galleria.js" file
在你打开的新页面没有引用到这个文件,你要可以按这个来试试看!
Comment #12
sgabe CreditAttribution: sgabe commentedChanging component. Some basic problems need to be documented in the module. For further information you should see the documentation of the Galleria plugin.
Comment #13
fazalmalik21 CreditAttribution: fazalmalik21 commentedThanks a lot dealancer you have solved my big problem.
Comment #14
emp_jahan CreditAttribution: emp_jahan commentedHi,
I created a image gallery page(photoGallery.htm) using instructions found in http://galleria.aino.se/docs/1.2/getting_started/beginners_guide/ which works fine.
Then i tried to integrate this page in Sharepoint 2010 web content webpart and got
"Fatal error: Width & Height not found".
I tried running the script using debug version and minified version. Same error message when it loads in SharePoint 2010.
I tried setting width and height of the container DIV, then setting width and height of of attribute. nothing helped.
script files used:
1.4.4/jquery.min.js" and galleria-1.2.3.js'
Not sure what to do from here. please advise if you have a solution...
Thank you
Jahangir
Comment #15
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.