CF is crashing our websites

Seems like every week we get this message on one of our sites, then have to change the CF folder via FTP, then delete CF and reinstall. Then it is okay… until a week later another site has the same problem. What’s up? Here is the message we get:

Fatal error: Uncaught Error: Call to a member function get_author_permastruct() on null in /home/customer/www/leavebehindabetterworld.com/public_html/wp-includes/author-template.php:347 Stack trace: #0 /home/customer/www/leavebehindabetterworld.com/public_html/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(195): get_author_posts_url(‘0’) #1 /home/customer/www/leavebehindabetterworld.com/public_html/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(148): CF\WordPress\Hooks->getPostRelatedLinks(801) #2 /home/customer/www/leavebehindabetterworld.com/public_html/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(337): CF\WordPress\Hooks->purgeCacheByRelevantURLs(801) #3 /home/customer/www/leavebehindabetterworld.com/public_html/wp-includes/class-wp-hook.php(292): CF\WordPress\Hooks->purgeCacheOnPostStatusChange(‘publish’, ‘new’, Object(WP_Post)) #4 /home/customer/www/leavebehindabetterworld.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #5 /home/customer/www/leavebehindab in /home/customer/www/leavebehindabetterworld.com/public_html/wp-includes/author-template.php on line 347