WordPress 3.0 and Profiler Plug in Problem and Solution

Content ID: 2659 | by BlueGreenWeb

The upgrade to WordPress 3.0 will cause the Profiler plug-in to no longer show newly added authors.

This is due to the new WordPress changing the wp_capabilities in the wp_usermeta field

Format for the previous versions of wordpress: a:1:{s:10:”subscriber”;b:1;}
Format for the new 3.0 version of wordpress: a:1:{s:10:”subscriber”;s:1:”1″;}

The $rolelist array searches for the previous version data for wp_usermeta.
The short solution is to add the new wp_usermeta format in the => none (see below)

Edit plugin: profiler/profiler.php
find $rolelist = … and replace with the code below

$roleslist = array('\'a:1:{s:13:\"administrator\";b:1;}\''=>$administrator,

The last element in the array is the new code.
You can change this from =>$none to =>$subscriber if you need to use the role features.

The profiler will now display your NEW subscriber Users.

This is a temporary fix, but for some a permanent solution.

Plugin Name: Profiler
Plugin URI: http://wordpress.org/extend/plugins/profiler/
Description: An enhanced version of the Profiler plugin with support for multiple users. It allows you to display the information of every registered user on your site in a special members area. Each user has their own profile which can be modified from the WordPress admin interface by either the user or an administrator.
Author: Eric Schulz
Version: 1.2.8