Title: Plugin broken when forcing SSL admin
Last modified: January 6, 2017

---

# Plugin broken when forcing SSL admin

 *  Resolved [kcargile](https://wordpress.org/support/users/kcargile/)
 * (@kcargile)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-broken-when-forcing-ssl-admin/)
 * Hi folks,
 * I’m forcing SSL for the admin section of my WordPress site (via `define('FORCE_SSL_ADMIN',
   true);`).
 * In this configuration, the plugin dialog is broken. It will load, however, the
   dialog hangs when attempting to insert a shortcode (either via new or existing
   link) in a post. The loading bar is displayed, but no content is added to the
   post and it is neccessary to reload the page to remove the popup.
 * Upon further investigation, it appears that the TinyMCE Javascript is being blocked
   by the browser (I’m using Chrome latest) as mixed content.
 * Looks like line 21 of `ctt-dialog.php` is the culprit:
 *     ```
       <script language="javascript" type="text/javascript" src="<?php echo get_option( 'siteurl' ) ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
       ```
   
 * This will use HTTP versus HTTPS, assuming that’s what configured as the site 
   URL in general options (which will normally be the case).
 * Changing the same line to use a relative path fixed the issue for me:
 *     ```
       <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
       ```
   
 * Cheers,
    Kristopher
    -  This topic was modified 9 years, 5 months ago by [kcargile](https://wordpress.org/support/users/kcargile/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [clicktotweet](https://wordpress.org/support/users/clicktotweet/)
 * (@clicktotweet)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-broken-when-forcing-ssl-admin/#post-8848438)
 * Kristopher,
 * Sorry for the delay in responding. We’ve updated the plugin to reflect your suggested
   change. Version 2.0.6 should be available in a few minutes.
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Plugin broken when forcing SSL admin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/click-to-tweet_ffffff.svg)
 * [Click To Tweet](https://wordpress.org/plugins/click-to-tweet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/click-to-tweet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/click-to-tweet/)
 * [Active Topics](https://wordpress.org/support/plugin/click-to-tweet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/click-to-tweet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/click-to-tweet/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 1 reply
 * 2 participants
 * Last reply from: [clicktotweet](https://wordpress.org/support/users/clicktotweet/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-broken-when-forcing-ssl-admin/#post-8848438)
 * Status: resolved