When updating a site recently we came accross the following error:-
Fatal error: Call to undefined function get_editable_roles() in
After searching we found the error is caused by the Jetpack plugin and the fix is as follows:-
if ( !function_exists('get_editable_roles') ) { require_once( ABSPATH . '/wp-admin/includes/user.php' ); }
Place this at line 268 of wp-content/plugins/jetpack/modules/stats.php
No BuddyPress Menu
Coincidentally we also had found that the same site was not showing the BuddyPress Login Menu Bar and this automatically reappeared after adding the fix. Jetpack can be a real pain sometimes 🙂 Apparently a fix is on its way in the next release.