Foo Galleries not displaying
-
I don’t know if this had to do with the recent upgrade or what, but all of a sudden, none of my Foo Galleries are displaying. This is happening on quite a few of my pages, but one example is urbancraftuprising.com/stock-photos. You can see many headings with no photos beneath them even though there should actually be a gallery beneath each one.
The photos that you do see displaying on the page are using a different kind of gallery–not FooGallery.
Please help!
The page I need help with: [log in to see the link]
-
Same thing is happening to me. I updated WordPress and the galleries are not working now. I also tried to deactivate the other plugins. Links are all there but there is just a white box where the image should be and it looks like the masonry is not styling its self. Do they see this reply or should I make a new ticket?
-
This reply was modified 7 years, 4 months ago by
Wildcard.
I have the same problem. Seems that Foo gallery is compatibel until wordpress 4.9. So after updating wp to 4.9 all the galleries are shut down.
Any idea if this will be fixed soon? Otherwise I will have to switch I guess..-
This reply was modified 7 years, 4 months ago by
jeuriss.
Same issue with me – also just updated to wordpress 4.9 – really hoping for a fix so I don’t have to replace my galleries.
It seems that the galleries do work in mobile view but don’t work in desktop view. Do you have the same?
I have the same problem. Seems that Foo gallery is not compatible with WordPress 4.9.
So after updating to 4.9 all the galleries Not working for me noticed it on Friday nightIt looks like you have some jquery errors related to Jetpack and your theme. IN Chrome, right click and choose “Inspect”, then click on “Console” to see them.
https://www.picpaste.com/Screen_Shot_2017-11-19_at_10.10.28_AM-6qnVG4OK.png@thenewguy_14
@jeuriss
@mwinterstorm
@saulwynne
Can you please share the url to where the galleries are not appearing?Same thing is happening to me. I updated WordPress and the galleries are not working now. I also tried to deactivate the other plugins.
Uncaught TypeError: Cannot read property ‘src’ of undefined
at d.load (foogallery.min.js?ver=1.4.7:10)
at foogallery.min.js?ver=1.4.7:10
at Function.map (jquery.js?ver=1.12.4:2)
at d.load (foogallery.min.js?ver=1.4.7:10)
at d.loadAvailable (foogallery.min.js?ver=1.4.7:9)
at Object.<anonymous> (foogallery.min.js?ver=1.4.7:9)
at Object.<anonymous> (jquery.js?ver=1.12.4:2)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Object.<anonymous> (jquery.js?ver=1.12.4:2)
ThanksFor me see https://www.markwr.com/gabs-june-2017/ as an example of a page / gallery not working…
Here are all our foo galleries url’s/pages I hope it helps ??
https://www.metroblindsport.org/gallery-2/
https://www.metroblindsport.org/adventure-sports/
https://www.metroblindsport.org/sports/archery/archery-gallery/
https://www.metroblindsport.org/sports/athletics/athletics-open-2017/
https://www.metroblindsport.org/sports/bowls/bowls-gallery/
https://www.metroblindsport.org/sports/cricket/cricket-gallery/
https://www.metroblindsport.org/sports/football/football-gallery/
https://www.metroblindsport.org/sports/multi-events/multi-events-gallery/
https://www.metroblindsport.org/sports/vi-skiing/skiing-gallery/
https://www.metroblindsport.org/sports/tennis/tennis-gallery/I added all our foo galleries urls but that post has been held in moderation for 72 hours by forums so here is the first one: https://www.metroblindsport.org/adventure-sports/
-
This reply was modified 7 years, 4 months ago by
saulwynne.
In the meantime – I am going to have upload dif galleries – not sure how long this fix will take
Hi All,
There’s a few different errors here presenting in a similar fashion so I’ll try answer each separately but first I’ll explain the reason behind the majority of the problems listed so you can better understand the issue.
In 1.4.x we added advanced loading of images which relies on JS to determine which images should be loaded and when etc. so the JS must be initialized in order for the images to be displayed which is normally not a problem. At the moment to initialize the JS we rely on jQuery’s ready callback functionality however there is a drawback to using this method. Internally jQuery stores all ready callbacks in an array and then when needed it simply loops through and executes each one. The problem with this is that if two plugins, A and B, are both using the callback and plugin A’s initialize code throws an error, plugin B’s initialize code will never be run.
@ristretto6, @jeuriss, @saulwynne this is the reason FooGallery is not being initialized on your pages. You can see this by opening up the console in your browser and executing the following which will then load your galleries:
jQuery(".foogallery").foogallery()
.We will be adding in an option to use a custom ready callback instead of the jQuery one which will work around this issue so themes or other plugins failing do not prevent the galleries from loading. I’ve outlined below each of your individual issues in more detail.
@jeuriss the error on your page is being thrown by the jQuery migrate plugin due to a selector being used in the Fusion menu JS which is part of your theme. In the ~/wp-content/themes/Avada/Avada/assets/js/main.min.js they are using the following selector:
".fusion-menu a:not([href=#], .fusion-megamenu-widgets-container a, .search-link), .fusion-mobile-nav-item a:not([href=#], .search-link), .fusion-button:not([href=#]), .fusion-one-page-text-link:not([href=#])"
which according to the migrate documention is invalid due to the use of[href=#]
, the#
needs to be quoted.@saulwynne the error on your page is being thrown by the ~/wp-content/themes/metro/js/sidebar-height.js but can be easily fixed. At present the initialize code is attempting to use the shorthand for jQuery which is simply
$
however in WordPress jQuery does not register the shorthand in order to avoid conflicts. To fix this error line 4 in the above mentioned file needs to be changed fromjQuery(document).ready(function(jQuery) {
tojQuery(document).ready(function($) {
@ristretto6 the error on your page is two fold. First the error preventing the initialize is being thrown by the ~/wp-content/themes/HighendWP/scripts/jquery.custom.js file on line 1529 where it is attempting to initialize a plugin called autocomplete which is supposed to be used for the header menu ajax search. The second part to your issue is a little more complicated and I have not found a solution yet. If you run the code
jQuery(".foogallery").foogallery()
in your console you will get another error saying “Masonry is not defined”. For some reason on your site Masonry is not registering itself on the window object and so can’t be initalized using it’s class name. I’ll need to figure what is going on however I think it is due to your theme including Isotope and us including Masonry.@mwinterstorm I believe your issue is different to the above. On your page there is no FooGallery JS being included in the page at all. I’m just confirming with @bradvin about possible causes.
@carrosparaeventos could you provide me with a url?
Thanks
-
This reply was modified 7 years, 4 months ago by
steveush. Reason: Mixed up version numbers
I mixed up the version numbers in my previous response, could you please provide me with a url where I can see the error?
Thanks
Great explanation @steveush, thank you for jumping in.
To be clear about those jquery issues caused by other plugins/theme. The best route is to contact the developers of those plugins/theme and share with them the fix.
You don’t want to make these edits to these yourself because when the plugins/themes are updated, your custom changes will be overwritten.
Alternatively, you can deactivate the problem plugins and seek a different plugin solution for the features they provide. A little more complicated is changing the entire theme of course.
Again, we recommend sharing these solutions with the developers directly in the hope that they will fix and provide updated versions.
-
This reply was modified 7 years, 4 months ago by
- The topic ‘Foo Galleries not displaying’ is closed to new replies.