• Resolved Stephen Peacock

    (@stephenpeacockcreativenet)


    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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    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

    (@stephenpeacockcreativenet)

    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

    Thanks again!

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    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

    If you have time to test it, let me know if this fixes the problem for you!

    Thread Starter Stephen Peacock

    (@stephenpeacockcreativenet)

    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.