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.
By chanjay on
Hi,
I just installed Masonry module with all required components. On views, it always gives me a garbage page (page full of fancy codes) whenever I tried to edit my Masonry views. Here is one of the return views configuration address: .../?q=admin/structure/views/ajax/display/masonry/page/style_options
Any idea what has happened here?
Thanks,.
hc.
Comments
You'll need to provide more
You'll need to provide more information than just "garbage" and "page full of fancy codes".
Post a link to your site, or a screenshot, or at least copy the actual error message.
You should test with the default core themes.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Hi, Here is the error page,
Hi,
Here is the error page, just first few lines.
[ {"command":"settings", "settings":{"basePath":"\u002Fteisco\u002F", "pathPrefix":"", "ajaxPageState":{"theme":"seven", "theme_token":"8mA42T__8re9JMT-MVeeO9RuFsUnSAv8pQnvrSzGHqM"}, "CTools":{"dependent":{"edit-style-options-masonry-animated":{"values":{"edit-style-options-masonry-resizable":[ 1 ]}, "num":1, "type":"hide"}, "edit-style-options-masonry-animation-duration":{"values":{"edit-style-options-masonry-animated":[ 1 ]}, "num":1, "type":"hide"}}}, "states":{"#edit-style-options-masonry-animated":{"visible":{"input.form-checkbox[name$=\u0022[masonry_resizable]\u0022]":{"checked":true}}}, "#edit-style-options-masonry-animation-duration":{"visible":{"input.form-checkbox[name$=\u0022[masonry_resizable]\u0022]":{"checked":true}, "input.form-checkbox[name$=\u0022[masonry_animated]\u0022]":{"checked":true}}}}}..........
I use Bootstrap theme. The Masonry effect does not work either.
hc.
I just installed devel
I just installed devel module, generated devel contents and re-created views. This time, the masonry effect works but the error page still appears whenever I configure the views setting.
hc.
You should try the issue
You should try the issue queue for the module you are using then.
What you see there is javascript from Drupal.settings. Normally that doesn't show on the page, but seeing it implies that there is an unescaped quote or something being output in the settings (a guess). Actually view-source, and find and paste the contents of that [script] tag ... in an issue over in the masonry support queue.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
I did some troubleshooting
I did some troubleshooting and found out that (I believe) the issue has something to do with the jQuery Update module. If I disabled it, the error page is gone. I also noticed that for example when I disabled jQuery Update and went into views/format/Masonry: settings, the submit button = "Apply (all displays)", however when I have the jQuery Update module enabled, the submit button only states "Apply" and when I click it, the error page appears.
hc.