Cannot flush rewrite rules with 2.0.9
-
HI,
Since updating to 2.0.9 we cannot flush cache + rewrite rules with WP-CLI:
wp cache flush wp rewrite flush
This results in the following error:
Fatal error: Uncaught Error: Call to a member function using_index_permalinks() on null in ...REDACTED.../wp/wp-includes/rest-api.php:467 Stack trace: #0 ...REDACTED.../wp/wp-includes/rest-api.php(530): get_rest_url(NULL, '/', 'rest') #1 ...REDACTED.../app/plugins/content-control/inc/functions/compatibility.php(53): rest_url() #2 ...REDACTED.../app/plugins/content-control/inc/functions/compatibility.php(104): ContentControl\is_rest() #3 ...REDACTED.../app/plugins/content-control/inc/functions/developers.php(221): ContentControl\is_frontend() #4 ...REDACTED.../app/plugins/content-control/classes/Controllers/Frontend/Restrictions/QueryPosts.php(77): ContentControl\protection_is_disabled() #5 ...REDACTED.../wp/wp-includes/class-w in ...REDACTED.../wp/wp-includes/rest-api.php on line 467 Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
If Content Control plugin is disabled it works fine.
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot flush rewrite rules with 2.0.9’ is closed to new replies.