masonry icon indicating copy to clipboard operation
masonry copied to clipboard

"no such method 'reload' for masonry instance"

Open ChristopherJBarclay opened this issue 5 years ago • 3 comments

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

ChristopherJBarclay avatar Oct 15 '19 20:10 ChristopherJBarclay

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

catalin560 avatar Oct 17 '19 07:10 catalin560

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

ChristopherJBarclay avatar Oct 17 '19 18:10 ChristopherJBarclay

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

or upgrade to 4.2.2

vulkanus avatar Oct 21 '19 09:10 vulkanus