• Resolved masumm17

    (@masumm17)


    Hi,

    Thanks for this awesome plugin. I am having a problem with multisite installation after updating the plugin to version 4. The network wide option is enabled but after creating new site ssl is not being enabled on new sites.
    I have tried to diagnose the issue and found out that the plugin hooks on ‘wp_insert_site’ action instead of ‘wp_initialize_site’. The later one was being used on version 3.5. with ‘wp_insert_site’ action hook, sites tables are not initialised, so the plugin fails to add the necessary options to database.

    File: class-multisite.php
    Line: 56
    Current code: add_action('wp_insert_site', array($this, 'maybe_activate_ssl_in_new_blog'), 20, 1);
    Fixed code: add_action('wp_initialize_site', array($this, 'maybe_activate_ssl_in_new_blog'), 20, 1);

    Apology for the formatting.

    • This topic was modified 4 years ago by masumm17.
Viewing 1 replies (of 1 total)
  • Plugin Author Mark

    (@markwolters)

    Gi @masumm17,

    thank you for reporting this issue. We have done tested this and come to the same conclusion as you, the wp_insert_site hook does not set a new site to SSL while the wp_initialize_site hook does. We have therefore updated the hook to wp_initialize_site. This will be included in the next update. For now you can find the updated version here: https://github.com/Really-Simple-Plugins/really-simple-ssl.

    Let me know if you have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘SSL is not being enabled for individual site for network wide seting’ is closed to new replies.