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/