[wp-hackers] Erro string off set

Leo Baiano ljunior2005 at gmail.com
Tue Sep 27 12:11:01 UTC 2011


Thank you, worked perfectly!

Thank you!

2011/9/27 Alexander Concha <alex at buayacorp.com>

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano


More information about the wp-hackers mailing list