{"id":512,"date":"2018-07-01T04:56:17","date_gmt":"2018-07-01T04:56:17","guid":{"rendered":"https:\/\/hostingxp.com\/?p=512"},"modified":"2020-04-13T07:04:04","modified_gmt":"2020-04-13T07:04:04","slug":"fix-fatal-error-call-to-a-member-function-flush_rules","status":"publish","type":"post","link":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/","title":{"rendered":"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL"},"content":{"rendered":"

The month of July is here, and Chrome 68 will now show “Not Secure” for all unencrypted connections. For WordPress users, it means moving over to HTTPS without hassles or losing traffic. If your web host<\/a> supports “Letsencrypt<\/a>” then you can easily move your existing site from HTTP to HTTPS and use a simple 301- redirect to ensure no traffic disruptions. To easily do this, we recommend using “Really Simple SSL<\/strong><\/a>.” However, you might encounter into Fix Fatal Error: Call to a member function flush_rules(). How to fix that? Let’s find out.<\/p>\n

Fix Fatal Error: Call to a member function flush_rules(): The Fix<\/h2>\n

In our example, we will use SiteGround Hosting<\/a> as an example. The first step is to enable SSL on your account. The option is available under the “Manage Account<\/strong>” section on the main user panel. See below:<\/p>\n

\"\"Once you have confirmed that the certificate has been issued, you can go to the WordPress Admin Panel and add the\u00a0“Really Simple SSL<\/strong><\/a>” if not done already.<\/p>\n

Once you are on the Plugin Menu which says:<\/p>\n

Almost ready to migrate to SSL!\r\nSome things can\u2019t be done automatically. Before you migrate, please check for:\r\nHttp references in your .css and .js files: change any http:\/\/ into \/\/\r\nImages, stylesheets or scripts from a domain without an \r\nssl certificate: remove them or move to your own server.<\/pre>\n

When you click on “Go ahead, Activate SSL<\/strong>,\u201d You might encounter the following error:<\/p>\n

<\/code>Fatal error: Call to a member function flush_rules() on null in \/wp-includes\/rewrite.php on line 273`<\/pre>\n

To fix this, I had to do two things.<\/p>\n

    \n
  1. Clear and Purge All Cache (SG Cache in our case)<\/li>\n
  2. Under “wp-admin\/options-permalink.php<\/strong><\/em>” click on “Save Changes<\/strong><\/em>.”<\/li>\n<\/ol>\n

    That’s it. When we went back and activated SSL, it worked without any further error messages.<\/p>\n

    Conclusion<\/h2>\n

    Let us know about your experience with our solution provided. Are you facing similar issues? Let us know in the comments section below. Thanks for visiting!<\/p>\n","protected":false},"excerpt":{"rendered":"

    The month of July is here, and Chrome 68 will now show “Not Secure” for all unencrypted connections. For WordPress users, it means moving over to HTTPS without hassles or losing traffic. If your web host supports “Letsencrypt” then you can easily move your existing site from HTTP to HTTPS and use a simple 301- […]<\/p>\n","protected":false},"author":1,"featured_media":515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"yoast_head":"\nHow To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL<\/title>\n<meta name=\"description\" content=\"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL\" \/>\n<meta property=\"og:description\" content=\"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/\" \/>\n<meta property=\"og:site_name\" content=\"hostingxp.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-01T04:56:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-13T07:04:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"712\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"HostingXP Staff Writer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HostingXP Staff Writer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/\",\"url\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/\",\"name\":\"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL\",\"isPartOf\":{\"@id\":\"https:\/\/hostingxp.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg\",\"datePublished\":\"2018-07-01T04:56:17+00:00\",\"dateModified\":\"2020-04-13T07:04:04+00:00\",\"author\":{\"@id\":\"https:\/\/hostingxp.com\/#\/schema\/person\/8d10b248ef9a2a7860cbfda444f6aa38\"},\"description\":\"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.\",\"breadcrumb\":{\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage\",\"url\":\"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg\",\"contentUrl\":\"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg\",\"width\":712,\"height\":400,\"caption\":\"Fix Fatal Error: Call to a member function flush_rules()\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostingxp.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostingxp.com\/#website\",\"url\":\"https:\/\/hostingxp.com\/\",\"name\":\"hostingxp.com\",\"description\":\"The Hosting Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostingxp.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostingxp.com\/#\/schema\/person\/8d10b248ef9a2a7860cbfda444f6aa38\",\"name\":\"HostingXP Staff Writer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostingxp.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8b03fdc21ab68c3d7d72b6f7462c820b?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8b03fdc21ab68c3d7d72b6f7462c820b?s=96&d=monsterid&r=g\",\"caption\":\"HostingXP Staff Writer\"},\"description\":\"We are a group of authors specializing in technical writing with decades of combined experience. We dedicate ourselves to bring you quality content.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL","description":"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL","og_description":"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.","og_url":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/","og_site_name":"hostingxp.com","article_published_time":"2018-07-01T04:56:17+00:00","article_modified_time":"2020-04-13T07:04:04+00:00","og_image":[{"width":712,"height":400,"url":"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg","type":"image\/jpeg"}],"author":"HostingXP Staff Writer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HostingXP Staff Writer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/","url":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/","name":"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL","isPartOf":{"@id":"https:\/\/hostingxp.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage"},"image":{"@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage"},"thumbnailUrl":"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg","datePublished":"2018-07-01T04:56:17+00:00","dateModified":"2020-04-13T07:04:04+00:00","author":{"@id":"https:\/\/hostingxp.com\/#\/schema\/person\/8d10b248ef9a2a7860cbfda444f6aa38"},"description":"We fixed the Fix Fatal Error: Call to a member function flush_rules() in our WordPress SSL migration. We shared our knowledge. Click to know more.","breadcrumb":{"@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#primaryimage","url":"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg","contentUrl":"https:\/\/hostingxp.com\/wp-content\/uploads\/2018\/07\/Fix-Fatal-Error_-Call-to-a-member-function-flush_rules.jpg","width":712,"height":400,"caption":"Fix Fatal Error: Call to a member function flush_rules()"},{"@type":"BreadcrumbList","@id":"https:\/\/hostingxp.com\/fix-fatal-error-call-to-a-member-function-flush_rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostingxp.com\/"},{"@type":"ListItem","position":2,"name":"How To Fix Fatal Error: Call to a member function flush_rules() with Enabling SSL"}]},{"@type":"WebSite","@id":"https:\/\/hostingxp.com\/#website","url":"https:\/\/hostingxp.com\/","name":"hostingxp.com","description":"The Hosting Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostingxp.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/hostingxp.com\/#\/schema\/person\/8d10b248ef9a2a7860cbfda444f6aa38","name":"HostingXP Staff Writer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostingxp.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8b03fdc21ab68c3d7d72b6f7462c820b?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8b03fdc21ab68c3d7d72b6f7462c820b?s=96&d=monsterid&r=g","caption":"HostingXP Staff Writer"},"description":"We are a group of authors specializing in technical writing with decades of combined experience. We dedicate ourselves to bring you quality content."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/posts\/512"}],"collection":[{"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/comments?post=512"}],"version-history":[{"count":0,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/posts\/512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/media\/515"}],"wp:attachment":[{"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/media?parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/categories?post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostingxp.com\/wp-json\/wp\/v2\/tags?post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}