Hi Manu,
I’m fine, thanks 😉
Can you remove the PHP code with Grid WUD, and use Grid WUD in a post/page?
Is the error gone?
Can you return me the exact PHP code you are using to display the Grid WUD?
Seem to be that jQuery is not loaded at the time you request it.
Regards, Danny
This is my php code:
<div class="wud">
<?php if( is_front_page()) : ?>
<?php echo do_shortcode('[gridwud slug="10092,11713,13074,10678,12169" button="1"]'); ?>
<?php endif;?>
</div>
I removed my php code cleaned cache etc and tried just the shortcode:
[gridwud slug="10092,11713,13074,10678,12169" button="1"]
inside a post and i also get the same error there.
Is only me getting this error?
I don’t know or you have this problem only …
Some try-outs …
1
Try to remove on grid-wud.js next code:
//<![CDATA[
and
//]]>
Give this a better result?
2
in wp-config file add the line:
define(‘CONCATENATE_SCRIPTS’, false );
Is this error now gone?
Let me know the results 😉
Regards, Danny
The biggest difference between your site and mine is next:
This is loaded at your site:
/wp-content/plugins/jch-optimize/assets/wp-content/plugins/nz/1/0/da1a9f913f8cc705f3740dc63becae17.js
This on my site
/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
So i load the WordPress default one and you with a plugin.
Therefore the line:
define(‘CONCATENATE_SCRIPTS’, false );
would solve this issue, or disable the plugin to see or the errors are gone.
see also your next error:
jquery.magnific-popup.min.js:4 Uncaught TypeError: e is not a function
Regards, Danny
Whenever you opt to use jQuery in a project, this means that jQuery becomes a dependency for your work.
And whenever you’re working with dependencies, you generally need to make sure that they are loaded before your code so that your code can take advantage of it.
Your plugin which load jQuery, instead the WP default one, loads to late and after we are requesting a jQuery function, which caused this issue.
Regards, Danny
It seems to be resolved now, happy to see it.
What did you changed?
Regars, Danny
Hi Danny,
Thanks for your detailed answer and help! Sorry for my late reply,i was trying to fix it and didn’t have much free time.
I always wanted to replace my minify/combine plugin with w3 total cache but didn’t have much time. So now i did it.
I did manually minify/combine and placed grid-wud.js before </body>.
That was the fix in my case. It wasn’t a plugin bug or anything like this.
Regards, Manos
Hi Manos,
Thank you very much for you reply!
I’m happy to hear that it wasn’t an bug from my plugin.
Regards, Danny