Title: Please fix the bug that is blocking the plugin to work on HTTPS website
Last modified: November 7, 2022

---

# Please fix the bug that is blocking the plugin to work on HTTPS website

 *  Resolved [nidhish89](https://wordpress.org/support/users/nidhish89/)
 * (@nidhish89)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/please-fix-the-bug-that-is-blocking-the-plugin-to-work-on-https-website/)
 * Bug pops-up in the console:
    Mixed Content: The page at ‘[https://www.LandingPAGE.COM&#8217](https://www.LandingPAGE.COM&#8217);
   was loaded over HTTPS, but requested an insecure stylesheet ‘[http://www.LandingPAGE.COM/wp-content/plugins/content-protector/assets/public/passster-public.min.css?ver=3.5.5.7&#8217](http://www.LandingPAGE.COM/wp-content/plugins/content-protector/assets/public/passster-public.min.css?ver=3.5.5.7&#8217);
 * Fix (content-protector.php):
    Replace this: define( ‘PASSSTER_PATH’, untrailingslashit(
   plugin_dir_path( __FILE__ ) ) ); define( ‘PASSSTER_URL’, untrailingslashit( plugin_dir_url(
   __FILE__ ) ) );
 * With this:
    define( ‘PASSSTER_PATH’, plugin_dir_path( __FILE__ ) ); define( ‘
   PASSSTER_URL’, plugin_dir_url( __FILE__ ) );

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nidhish89](https://wordpress.org/support/users/nidhish89/)
 * (@nidhish89)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/please-fix-the-bug-that-is-blocking-the-plugin-to-work-on-https-website/#post-16173919)
 * Well, the above fix couldn’t actually fix the bug for me, let me know if you 
   find any solution, please?
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/please-fix-the-bug-that-is-blocking-the-plugin-to-work-on-https-website/#post-16291940)
 * Hey [@nidhish89](https://wordpress.org/support/users/nidhish89/),
 * thanks for your report.
 * I couldn’t reproduce it myself, but I’m happy to take a closer look.
    The problem
   with removing the untrailingslashit() function from the constant is that it may
   produce a wrong URL if the Site URL in WordPress is configured with a slash at
   the end.
 * We may need to find another way to handle that.
 * Best regards,
    Patrick

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Please fix the bug that is blocking the plugin to work on HTTPS website’
is closed to new replies.

 * ![](https://ps.w.org/content-protector/assets/icon-256x256.png?rev=2206760)
 * [Passster - Password Protect Pages and Content](https://wordpress.org/plugins/content-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/content-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-protector/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/please-fix-the-bug-that-is-blocking-the-plugin-to-work-on-https-website/#post-16291940)
 * Status: resolved