Title: Error On Activation
Last modified: September 25, 2017

---

# Error On Activation

 *  Resolved [Stephen Peacock](https://wordpress.org/support/users/stephenpeacockcreativenet/)
 * (@stephenpeacockcreativenet)
 * [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/)
 * I’ve gotten an error when pressing on the ‘Go Ahead, Activate SSL’ on three different
   sites. All the same error:
 * **Fatal error:** Call to a member function flush_rules() on a non-object in /
   home2/vanco/public_html/mywebsite.com/wp-includes/rewrite.php on line 273
 * When I log back in the the site settings for the site location includes the https://–
   SSL checkers pronounce all is well with the certificate.
 * But, the message to ‘Go Ahead, activate SSL’ persists.
 * Any thoughts? How do I get the message to go away?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-on-activation-69%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/#post-9528842)
 * Hi Stephen,
 * This is a known issue, which is hard to reproduce, and therefore hard to fix.
   The issue is a result of different plugins flushing the rewrite rules at the 
   same moment: the last one to flush gets the error you see. Following best practices
   I flush them on the “shutdown” hook, but other plugins do this differently. Can
   you provide me with a list of plugins? That way I check if I can reproduce the
   issue.
 * A workaround is to comment out or remove line 97 in wp-content/plugins/really-
   simple-ssl/class-admin.php
 * `add_action( 'shutdown', 'flush_rewrite_rules');`
 * You can do this without fear of plugin updates: this function only executes once
   on activation.
 * Possibly I need to remove this line altogether, but that would mean the user 
   will have to do this manually, by re-saving the permalinks.
 *  Thread Starter [Stephen Peacock](https://wordpress.org/support/users/stephenpeacockcreativenet/)
 * (@stephenpeacockcreativenet)
 * [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/#post-9528895)
 * RogierLankhorst, wow, thanks for the swift response. I’ll try the workaround 
   you suggested. Here is a link to a screen capture of the plugins page
 * [Plugins on TractorCountry.net](https://i2.wp.com/tractorcountry.net/wp-content/uploads/2017/09/screencapture-tractorcountry-net.jpg?ssl=1)
 * Thanks again!
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/#post-9531360)
 * Thanks for the plugin list.
 * In case you haven’t activated all sites yet: I have committed a new version on
   Github, in which the flushing can be optionally disabled.
    [https://github.com/rlankhorst/really-simple-ssl](https://github.com/rlankhorst/really-simple-ssl)
 * If you have time to test it, let me know if this fixes the problem for you!
 *  Thread Starter [Stephen Peacock](https://wordpress.org/support/users/stephenpeacockcreativenet/)
 * (@stephenpeacockcreativenet)
 * [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/#post-9532088)
 * RogierLankhorst, thanks again! I had already implemented your work around on 
   the other sites. I appreciate your efforts! Keep up the good work!

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

 The topic ‘Error On Activation’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Stephen Peacock](https://wordpress.org/support/users/stephenpeacockcreativenet/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/error-on-activation-69/#post-9532088)
 * Status: resolved