• Anybody happen to know why I might be getting the following error?

    Undefined index: capabilities in /home/../../wp-includes/class-wp-roles.php on line 288

    regarding these lines…. I never edit core files….

    `public function init_roles() {
    if ( empty( $this->roles ) ) {
    return;
    }

    $this->role_objects = array();
    $this->role_names = array();
    foreach ( array_keys( $this->roles ) as $role ) {
    $this->role_objects[ $role ] = new WP_Role( $role, $this->roles[ $role ][‘capabilities’] );
    $this->role_names[ $role ] = $this->roles[ $role ][‘name’];
    }

    /**
    * After the roles have been initialized, allow plugins to add their own roles.
    *
    * @since 4.7.0
    *
    * @param WP_Roles $this A reference to the WP_Roles object.
    */
    do_action( ‘wp_roles_init’, $this );
    }`

    maybe a table is corrupted? Site is still in beta, should I just do a fresh install of everything?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘warning on a WP core file..’ is closed to new replies.