I see, that’s a significant issue, the page crashed my browser tab.
Does the Gmedia Gallery plugin provide shortcodes? If so, could you tell me how you’re using them and the surrounding context?
Also, it’s hard to tell from the link, is it a JavaScript or PHP issue?
Yes, Gmedia Gallery uses shortcodes to implement the gallery.
It looks like that: [gmedia id=30]
I use the theme Make but also with the default themes there is the same problem. In Make you can make columns and other special field directly in the backend editor and edit these with a editor, too(not with shortcodes). In this case I’m using the columns and inside these I have just the shortcode and the Link to the full gallery.
It seems to be the jquery.js according to the error message:
Link
(It’s in German but you can see the file name.)
Is the gallery shortcode just in the post content, or is it loaded from another post/field using shortcode or PHP?
It could be that the result of the gallery shortcode contains JavaScript directly, and somehow that is being put through do_shortcode
again.
By the way, do you have [raw]
shortcode enabled under Settings?
The gallery shortcode is just in the post content. So it should be loaded directly as far as I know… I just put it onto a test page without Make’s page template to be sure that Make doesn’t do anything there and it still not perfect but it doesn’t loop that much now. Only three times…
http://denna-gherlyn.de/test/
And no I don’t use [raw]
. So it isn’t enabled.
Is the gallery shortcode surrounded by other shortcodes, for example in a posts loop?
I confirmed that the gallery shortcode includes JavaScript inside, and something is not right with it. There is an error – Uncaught SyntaxError: Unexpected token <. I checked all JS files and scripts on the page but can’t find where it’s coming from.
The fact that there is ); });
between the gallery rows shows that the JavaScript is broken. I just don’t understand how Custom Content Shortcode can be related to it. It doesn’t do anything with frontend JS, so only thing I can imagine is that somehow the JS code is being filtered through do_shortcode.
No, nothing, just the shortcode [gmedia id=30]
.
I just don’t understand how Custom Content Shortcode can be related to it.
Me neither. But it works then I deactivate it. I don’t understand it.
It was not my first candidate. But deactivating every single plugin said that it is yours…
Can you try the following?
[direct][gmedia id=30][/direct]
It’s not a solution, but if the issue is gone after that, it confirms that the JS code is being filtered by do_shortcode.
Yes. And it seems like you’re right. You can see the result on the testpage.
Seems like your updates fixed the problem.
Thank you.