[wp-hackers] Erro string off set

Alexander Concha alex at buayacorp.com
Tue Sep 27 12:00:46 UTC 2011


On Tue, Sep 27, 2011 at 1:03 PM, Leo Baiano <ljunior2005 at gmail.com> wrote:
> Personally, after trying to create a new group of users via add_role()
> WordPress began to display the following error whenever I try to log in:
>
> Fatal error: Cannot use string offset as an array  in
> /home/..../capabilities.php on line 116
>
> It removed the group function remove_role() but the error still continues.
> Also installed the plugin user photo just before the error started, but I do
> not know if you have relevance.
>
> Could anyone help me solve this problem?

Recreate the user_roles option.

<?php

include_once './wp-config.php';
include_once ABSPATH . '/wp-admin/includes/schema.php';
delete_option( $wpdb->prefix . 'user_roles' );
populate_roles();

?>
-- 
Alexander Concha
http://www.buayacorp.com


More information about the wp-hackers mailing list