Jetpack Fatal error: Call to undefined function get_editable_roles()

Glenn Blog, Glenn's Blog 0 Comments

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.

About the Author
Jetpack Fatal error: Call to undefined function get_editable_roles() Jetpack Fatal error: Call to undefined function get_editable_roles() 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

Leave a Reply

Your email address will not be published. Required fields are marked *