WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
[resolved] Invalid wp_user_roles (11 posts)

  1. MIc-Man
    Member
    Posted 2 years ago #

    After updating and adding new role with copying option of existing default role URE invalidates wp_user_roles entry in WP_options. Lead to:

    "Fatal error: Cannot use string offset as an array in "... "\wp-includes\capabilities.php on line 112

    Is this issue known? Is it my fault ;)? Does a fix exists? Or a work-around?

    Greetings
    Mic

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 2 years ago #

    No, this is a 1st bug message. If you can reproduce it please share in details what actions lead to this crash.

    Regards,
    Vladimir.

  3. MIc-Man
    Member
    Posted 2 years ago #

    ok:

    wp_roles_option before:
    a:10:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:85:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:18:"_define_page_posts";b:1;s:14:"_manage_groups";b:1;s:18:"UM Send Public Msg";b:1;s:19:"UM Send Private Msg";b:1;s:17:"UM Send Email Msg";b:1;s:20:"UM Ignore Public Msg";b:1;s:21:"UM Refuse Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:19:"UM Configure Plugin";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:26:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:8:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:21:"ai1ec_event_assistant";a:2:{s:4:"name";s:17:"Event Contributor";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:17:"edit_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;}}s:8:"mitglied";a:2:{s:4:"name";s:8:"Mitglied";s:12:"capabilities";a:2:{s:7:"level_0";i:1;s:4:"read";i:1;}}s:13:"nichtmitglied";a:2:{s:4:"name";s:13:"Nichtmitglied";s:12:"capabilities";a:1:{s:7:"level_0";i:1;}}s:14:"schriftfuehrer";a:2:{s:4:"name";s:14:"Schriftfuehrer";s:12:"capabilities";a:4:{s:7:"level_0";i:1;s:10:"list_users";i:1;s:13:"promote_users";i:1;s:4:"read";i:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:16:"verantwortlicher";a:2:{s:4:"name";s:16:"Verantwortlicher";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:14:"_manage_groups";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:18:"edit_theme_options";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:14:"manage_options";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;}}}

    Then following steps:
    1. go to user and User Role Editor Plugin
    2. add new role (with Name = "Gruppenleitung" and Make copy of: "Autor") => ists a german MU installation
    3.Add

    => Error occurs

    wp_roles_option afterwards:
    a:11:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:85:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:18:"_define_page_posts";b:1;s:14:"_manage_groups";b:1;s:18:"UM Send Public Msg";b:1;s:19:"UM Send Private Msg";b:1;s:17:"UM Send Email Msg";b:1;s:20:"UM Ignore Public Msg";b:1;s:21:"UM Refuse Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:19:"UM Configure Plugin";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:26:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:8:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:21:"ai1ec_event_assistant";a:2:{s:4:"name";s:17:"Event Contributor";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:17:"edit_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;}}s:8:"mitglied";a:2:{s:4:"name";s:8:"Mitglied";s:12:"capabilities";a:2:{s:7:"level_0";i:1;s:4:"read";i:1;}}s:13:"nichtmitglied";a:2:{s:4:"name";s:13:"Nichtmitglied";s:12:"capabilities";a:1:{s:7:"level_0";i:1;}}s:14:"schriftfuehrer";a:2:{s:4:"name";s:14:"Schriftfuehrer";s:12:"capabilities";a:4:{s:7:"level_0";i:1;s:10:"list_users";i:1;s:13:"promote_users";i:1;s:4:"read";i:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:16:"verantwortlicher";a:2:{s:4:"name";s:16:"Verantwortlicher";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:14:"_manage_groups";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:18:"edit_theme_options";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:14:"manage_options";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;}}s:37:"gruppenleitung

    => so it just adds the role afterwads outside the normal tag
    =>=> tested it also on single installation with english version
    =>=>=> Here it works!!! SO it could be MU or german translation.
    Any idea. I'll keep on working on solution and will post if i get more information.

    Greets Mic

  4. MIc-Man
    Member
    Posted 2 years ago #

    Insert error of wp_option:

    before:

    a:10:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:85:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:18:"_define_page_posts";b:1;s:14:"_manage_groups";b:1;s:18:"UM Send Public Msg";b:1;s:19:"UM Send Private Msg";b:1;s:17:"UM Send Email Msg";b:1;s:20:"UM Ignore Public Msg";b:1;s:21:"UM Refuse Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:19:"UM Configure Plugin";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:26:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:8:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:21:"ai1ec_event_assistant";a:2:{s:4:"name";s:17:"Event Contributor";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:17:"edit_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;}}s:8:"mitglied";a:2:{s:4:"name";s:8:"Mitglied";s:12:"capabilities";a:2:{s:7:"level_0";i:1;s:4:"read";i:1;}}s:13:"nichtmitglied";a:2:{s:4:"name";s:13:"Nichtmitglied";s:12:"capabilities";a:1:{s:7:"level_0";i:1;}}s:14:"schriftfuehrer";a:2:{s:4:"name";s:14:"Schriftfuehrer";s:12:"capabilities";a:4:{s:7:"level_0";i:1;s:10:"list_users";i:1;s:13:"promote_users";i:1;s:4:"read";i:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:16:"verantwortlicher";a:2:{s:4:"name";s:16:"Verantwortlicher";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:14:"_manage_groups";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:18:"edit_theme_options";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:14:"manage_options";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;}}}

    After:
    a:11:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:85:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:18:"_define_page_posts";b:1;s:14:"_manage_groups";b:1;s:18:"UM Send Public Msg";b:1;s:19:"UM Send Private Msg";b:1;s:17:"UM Send Email Msg";b:1;s:20:"UM Ignore Public Msg";b:1;s:21:"UM Refuse Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:19:"UM Configure Plugin";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:26:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;s:16:"read_ai1ec_event";b:1;s:16:"edit_ai1ec_event";b:1;s:17:"edit_ai1ec_events";b:1;s:24:"edit_others_ai1ec_events";b:1;s:25:"edit_private_ai1ec_events";b:1;s:27:"edit_published_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;s:19:"delete_ai1ec_events";b:1;s:26:"delete_others_ai1ec_events";b:1;s:29:"delete_published_ai1ec_events";b:1;s:27:"delete_private_ai1ec_events";b:1;s:20:"publish_ai1ec_events";b:1;s:25:"read_private_ai1ec_events";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:8:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;s:19:"UM Send Private Msg";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:21:"ai1ec_event_assistant";a:2:{s:4:"name";s:17:"Event Contributor";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:17:"edit_ai1ec_events";b:1;s:18:"delete_ai1ec_event";b:1;}}s:8:"mitglied";a:2:{s:4:"name";s:8:"Mitglied";s:12:"capabilities";a:2:{s:7:"level_0";i:1;s:4:"read";i:1;}}s:13:"nichtmitglied";a:2:{s:4:"name";s:13:"Nichtmitglied";s:12:"capabilities";a:1:{s:7:"level_0";i:1;}}s:14:"schriftfuehrer";a:2:{s:4:"name";s:14:"Schriftfuehrer";s:12:"capabilities";a:4:{s:7:"level_0";i:1;s:10:"list_users";i:1;s:13:"promote_users";i:1;s:4:"read";i:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:4:{s:4:"read";b:1;s:7:"level_0";b:1;s:14:"UM Receive Msg";b:1;s:13:"UM Use Plugin";b:1;}}s:16:"verantwortlicher";a:2:{s:4:"name";s:16:"Verantwortlicher";s:12:"capabilities";a:54:{s:18:"_define_page_posts";i:1;s:14:"_manage_groups";i:1;s:18:"delete_ai1ec_event";i:1;s:19:"delete_ai1ec_events";i:1;s:26:"delete_others_ai1ec_events";i:1;s:19:"delete_others_pages";i:1;s:19:"delete_others_posts";i:1;s:12:"delete_pages";i:1;s:12:"delete_posts";i:1;s:27:"delete_private_ai1ec_events";i:1;s:20:"delete_private_pages";i:1;s:20:"delete_private_posts";i:1;s:29:"delete_published_ai1ec_events";i:1;s:22:"delete_published_pages";i:1;s:22:"delete_published_posts";i:1;s:16:"edit_ai1ec_event";i:1;s:17:"edit_ai1ec_events";i:1;s:24:"edit_others_ai1ec_events";i:1;s:17:"edit_others_pages";i:1;s:17:"edit_others_posts";i:1;s:10:"edit_pages";i:1;s:10:"edit_posts";i:1;s:25:"edit_private_ai1ec_events";i:1;s:18:"edit_private_pages";i:1;s:18:"edit_private_posts";i:1;s:27:"edit_published_ai1ec_events";i:1;s:20:"edit_published_pages";i:1;s:20:"edit_published_posts";i:1;s:18:"edit_theme_options";i:1;s:10:"edit_users";i:1;s:7:"level_0";i:1;s:7:"level_1";i:1;s:7:"level_2";i:1;s:7:"level_3";i:1;s:7:"level_4";i:1;s:7:"level_5";i:1;s:7:"level_6";i:1;s:7:"level_7";i:1;s:10:"list_users";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:14:"manage_options";i:1;s:17:"moderate_comments";i:1;s:13:"promote_users";i:1;s:20:"publish_ai1ec_events";i:1;s:13:"publish_pages";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:16:"read_ai1ec_event";i:1;s:25:"read_private_ai1ec_events";i:1;s:18:"read_private_pages";i:1;s:18:"read_private_posts";i:1;s:15:"unfiltered_html";i:1;s:12:"upload_files";i:1;}}s:37:"gruppenleitung

  5. MIc-Man
    Member
    Posted 2 years ago #

    Can it be that this is due to the translation of default roles?

    In the language file i have: author is translated with Autor. Which seems correctly. So the role name is Autor when i like to select copy from. But in the wp_options standard roles are defined in en_EN.
    => So due to this missmatch your plugin has problems to get that correctly? <= That my thought.

    I am currently looking in the plugin code to identify line where this could happen.
    I am still working on that.

    Greets Mic

  6. MIc-Man
    Member
    Posted 2 years ago #

    SOLUTION:

    So after a dinner, i found the solution now:

    Root_cause:
    The causing problem is the naming of the field copy_from_user_role!
    ure-role-edit.php line 133:
    url = url +'&copy_from_user_role='+ el.value;

    &copy get interpreted by Internet Explorer to copyright sign ©

    Fixing steps:
    1. Open all .php of plugin
    2. replace copy_from_user_role with _copy_from_user_role
    3. Save all files

    => Fixed!

    Greets Mic

  7. Vladimir Garagulya
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you, Mic, for help with this. I published the fix.
    I will setup WP under Windows and try to play with copyright character inside URL - in order to understand how it leads to such large crash.

    Regards,
    Vladimir.

  8. MIc-Man
    Member
    Posted 2 years ago #

    You're very wellcome.

    Thanks again for this brilliant plugin!

  9. activi
    Member
    Posted 2 years ago #

    I am having the same problem.

    My website admin crashed:
    Fatal error: Cannot use string offset as an array in /wp-includes/capabilities.php on line 112

    I tried to look for thr string "copy_from_user_role" and found no result.

    I even tried to delete the plugin but no result.

    Please tell me what to currect in the DB.

    Thanks
    Shahar

  10. activi
    Member
    Posted 2 years ago #

    I reseted the wp_option -> user roles from old DB.
    It`s now solve my problem

  11. MIc-Man
    Member
    Posted 2 years ago #

    by the way. fix is working fine also ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic