Warnings & Errormessages

SSL activated! message not going away

After activation of SSL in Really Simple SSL, there’s a success message that confirms your site has been migrated to https.

SSL activated! Don’t forget to change your settings in Google Analytics en Webmaster tools. More info.

When the x in the right top is clicked, an ajax call is fired that sets the “success message show” variable to true. Some users report that the message keeps coming back. I haven’t been able to reproduce this yet, but my guess is that there’s a javascript error on the dashboard, caused by another plugin, or the theme, which breaks the ajax callback.

On the wishlist I’ve added the option to dismiss it in the traditional way, with a submit. For now, there’s a workaround you can use to remove the notice.
Add this you your theme’s functions.php:

add_action("init", "rsssl_dismiss_success_message");

function rsssl_dismiss_success_message(){

  $options = get_option('rlrsssl_options');

  $options['ssl_success_message_shown'] = true;

  update_option('rlrsssl_options',$options);

}

After loading your site once, the message should go away, then you can remove this code.

For multisite this would be:

add_action("init", "rsssl_dismiss_success_message");
function rsssl_dismiss_success_message(){
 $sites = get_sites();
 foreach ( $sites as $site ) {
  switch_to_blog( $site->blog_id );
  $options = get_option('rlrsssl_options');   
  $options['ssl_success_message_shown'] = true;   
  update_option('rlrsssl_options',$options);
  restore_current_blog(); //switches back to previous blog, not current, so we have to do it each loop
 }
}

Related Articles

  • err_ssl_protocol_error

    err_ssl_protocol_error The err_ssl_protocol_error is usually caused by a failure to securely communicate with the server and often has to do with the server configuration. For any SSL related error there...
  • Plugin conflict force rewrite title Yoast

    * Update* This issue should be resolved in the 2.4 version. I left the Yoast check for now, but this warning will be removed in future versions. If you have...
  • Website not accessible with SSL

    If you cannot access your website, but do not have redirect loop errors, your SSL certificate might be invalid. Normally Really Simple SSL checks if ssl is available, and only...
  • htaccess redirect to https may cause redirect to 401.shtml when using password protection

    When using the .htaccess for password protection in combination with the .htaccess 301 redirect to https in Really Simple SSL, a redirect to https://domain.com/401.shtml might occur. A simple solution which...

4 Comments

  • Leap Frog

    On our multisite installation: when activating site-by-site the message DOES go away after closing the ‘X” on each site. However, the Network Dashboard continues to show the message time-after-time-after-time.

    Hope this is helpful info.

    • Rogier Lankhorst

      Thanks for this info. You are right, I have found the cause, and committed to github. If you want you can update the class-multisite.php file, and replace it. Then you should be able to dismiss properly. It will be released with 2.5.19 in a few weeks.

  • Leap Frog

    Verified that the last commit of class-multisite.php fixed the problem for us, thanks!

    • Rogier Lankhorst

      Thanks for the update! The fix is released with 2.5.19.

Leave a Comment