desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.28k stars 2.11k forks source link

"no such method 'reload' for masonry instance" #1116

Open ChristopherJBarclay opened 4 years ago

ChristopherJBarclay commented 4 years ago

Hello, I've been banging my head against a wall trying to fix an old WordPress site with a really old theme (Inspire - by Boostdevelopers) that uses Masonry.

Link to site: WellandTrue.com

I get an error currently "no such method 'reload' for masonry instance" but I can't find any uses of 'reload' in masonry.min.js - it seems to use 'reloadItem' which i believe is correct usage.

When masonry.min.js code is updated to newest version from Masonry site, I get a similar error: "masonry.min.js?ver=3.3.2:9 $().masonry("reload") is not a valid method"

Theme has not been updated in 4 years and devs no longer offer support. Theme breaks when WordPress is updated to new versions. Old host used an ancient version of PHP on server which worked with equally ancient versions of WP and theme. New host won't downgrade PHP.

So I'm here JUST IN CASE I can get super lucky with someone's help here.

I really appreciate you taking the time to read this.

masonry.min.js.zip

catalin560 commented 4 years ago

hah! good luck buddy! this repo and presumably this project has been dead for weeks... I'm just telling you so that you wont get your hopes up

ChristopherJBarclay commented 4 years ago

Hahaha thank you @catalin560 , I appreciate the heads up. Figured that was the case after having a look around. But had to try!

vulkanus commented 4 years ago

did you change to "layout" instead "reload" ? https://github.com/desandro/masonry/issues/382

or upgrade to 4.2.2