admin管理员组文章数量:1428524
I recently switched to ssl in order to provide a better and more secure website experience for my users.
I nearly solved all of my mixed content issues, but the mixed content warnings of the Wordpress plugin kk star ratings are still unsolved.
When I open a blog post, I always get the following notifications:
The following content is displayed in an insecure manner.
/wp-content/plugins/kk-star-ratings/yellow.png.
/wp-content/plugins/kk-star-ratings/gray.png.
I've already looked into the plugin folder, but I don't have any php knowledge to fix it.
Could these lines be responsible for the mixed content warning?
echo $star_gray ? '.kk-star-ratings .kksr-star.gray { background-image: url('.$star_gray.'); }' : '';
echo $star_yellow ? '.kk-star-ratings .kksr-star.yellow { background-image: url('.$star_yellow.'); }' : '';
echo $star_orange ? '.kk-star-ratings .kksr-star.orange { background-image: url('.$star_orange.'); }' : '';
I would be grateful if someone could help me to load these files via ssl.
I recently switched to ssl in order to provide a better and more secure website experience for my users.
I nearly solved all of my mixed content issues, but the mixed content warnings of the Wordpress plugin kk star ratings are still unsolved.
When I open a blog post, I always get the following notifications:
The following content is displayed in an insecure manner.
/wp-content/plugins/kk-star-ratings/yellow.png.
/wp-content/plugins/kk-star-ratings/gray.png.
I've already looked into the plugin folder, but I don't have any php knowledge to fix it.
Could these lines be responsible for the mixed content warning?
echo $star_gray ? '.kk-star-ratings .kksr-star.gray { background-image: url('.$star_gray.'); }' : '';
echo $star_yellow ? '.kk-star-ratings .kksr-star.yellow { background-image: url('.$star_yellow.'); }' : '';
echo $star_orange ? '.kk-star-ratings .kksr-star.orange { background-image: url('.$star_orange.'); }' : '';
I would be grateful if someone could help me to load these files via ssl.
Share Improve this question edited Jan 10, 2019 at 0:13 Jacob Peattie 44.2k10 gold badges50 silver badges64 bronze badges asked Jan 9, 2019 at 14:47 NiklasNiklas 531 silver badge7 bronze badges3 Answers
Reset to default 2I solved it myself. You have to remove the stars in settings / stars. Afterwards the tool recognizes ssl and will load it from a secure version of the website.
Can try replacing all URL from database to https, you can use the plugin "Search and replace" or if you have phpMyAdmin access you can use this script
UPDATE wp_posts SET guid = replace(guid, 'http://www.yoursite','https://www.yoursite');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yoursite', 'https://www.yoursite');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.yoursite','https://www.yoursite');
Redirect HTTP to HTTPS Using .htaccess file. You this code to force a redirect to https URL.
RewriteEngineOn
RewriteCond%{HTTPS}off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
You can easy do this from your kk star rating dashboard. Just follow this link: https://ask.wpcrons/how-can-i-fix-the-mixed-content-problems-of-the-kk-star-ratings-plugin/
本文标签: phpHow can I fix the mixed content problems of the kk star ratings plugin
版权声明:本文标题:php - How can I fix the mixed content problems of the kk star ratings plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745471672a2659778.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论