Title: Plugin load order
Last modified: August 31, 2016

---

# Plugin load order

 *  Resolved [Birmania](https://wordpress.org/support/users/birmania/)
 * (@birmania)
 * [10 years ago](https://wordpress.org/support/topic/plugin-load-order-1/)
 * Hi all,
 * I am currently using your plugin it’s really a Gods’s gift to manage Https content
   delivery through Cloudflare Flexible SSL.
 * However, I notice that plugins which are loaded (included) before the “__construct”
   method of your “class.SSLInsecureContentFixer” will not benefit from your modifications.(
   Seems normal as filters are not yet initialized/added)
 * Do you have a beautiful way to solve this problem or do I need to modify plugins
   order, on any activation, to put the “SSL Insecure Content Fixer” in first position?(
   Cf. [https://wordpress.org/support/topic/how-to-change-plugins-load-order?replies=11](https://wordpress.org/support/topic/how-to-change-plugins-load-order?replies=11))
 * Yours faithfully,
    Birmania
 * [https://wordpress.org/plugins/ssl-insecure-content-fixer/](https://wordpress.org/plugins/ssl-insecure-content-fixer/)

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

 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years ago](https://wordpress.org/support/topic/plugin-load-order-1/#post-7427271)
 * G’day Birmania,
 * You haven’t posted a link to your website, so I can’t see what’s not being fixed.
   I’ll just have to guess 🙂
 * The only thing that should be affected by order of loading plugins is the proxy
   fix. You can easily implement that in your wp-config.php to get in front of anything
   WordPress loads, so there’s no need to modify the load order of plugins.
 * e.g. for CloudFlare, you should be able to use the `HTTP_X_FORWARDED_PROTO` fix
   by adding this to your wp-config.php file before any mention of ABSPATH:
 *     ```
       if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
           $_SERVER['HTTPS'] = 'on';
       }
       ```
   
 * cheers,
    Ross
 *  Thread Starter [Birmania](https://wordpress.org/support/users/birmania/)
 * (@birmania)
 * [10 years ago](https://wordpress.org/support/topic/plugin-load-order-1/#post-7427300)
 * Hi Webaware,
 * Sorry that I didn’t put my website URL. I was thinking that it will not be really
   relevant for your analysis.
    => Just a mixed content error on a plugin’s URL 
   that is generated from PHP.
 * Indeed, my mixed content error came from All-In-One-Event-Calendar plugin which
   is computing some URL when plugin is included, with the following line of code:
   
   $ai1ec_base_url = plugins_url( ”, __FILE__ ); => This line will produce an “HTTP”
   URL when plugin is included before “SSL Insecure Content Fixer” and “HTTPS” if
   included after.
 * However, your proxy fix is the perfect trick, it works like a charm.
    Moreover,
   it solve all mixed content problems, even with “SSL Insecure Content Fixer” desactivated.
 * I hope that it is a normal behavior… !
 * And if you need to take a look : [Website](https://nouveau-ctb.com/)
 * Thanks a lot Ross,
    Do not hesitate to indicate if I did a mistake by desactivating
   your plugin.
 * Yours faithfully,
    Birmania
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [10 years ago](https://wordpress.org/support/topic/plugin-load-order-1/#post-7427301)
 * G’day Birmania,
 * Excellent, and it sounds like everything else is OK so you don’t need my plugin.
   That’s the best solution then!
 * I haven’t examined your website, but if you do find some mixed content, just 
   enable my plugin again and test with the different options.
 * cheers,
    Ross

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

The topic ‘Plugin load order’ is closed to new replies.

 * ![](https://ps.w.org/ssl-insecure-content-fixer/assets/icon-256x256.png?rev=2590634)
 * [SSL Insecure Content Fixer](https://wordpress.org/plugins/ssl-insecure-content-fixer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ssl-insecure-content-fixer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ssl-insecure-content-fixer/)
 * [Active Topics](https://wordpress.org/support/plugin/ssl-insecure-content-fixer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ssl-insecure-content-fixer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ssl-insecure-content-fixer/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [load](https://wordpress.org/support/topic-tag/load/)
 * [order](https://wordpress.org/support/topic-tag/order/)
 * [__construct](https://wordpress.org/support/topic-tag/__construct/)

 * 3 replies
 * 2 participants
 * Last reply from: [webaware](https://wordpress.org/support/users/webaware/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/plugin-load-order-1/#post-7427301)
 * Status: resolved