WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#11063 closed defect (bug) (worksforme)

wp_user_level not being defined for admin on clean install

Reported by: bonaireguy Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.5
Component: Upgrade/Install Keywords: wp_user_level, install, admin
Focuses: Cc:

Description

Doing a clean install of WP 2.8.5 does not initialize the wp_user_level value for the "admin" user in the database. It should be set, and set to a value of "10".

This was previously reported for 2.1.x and apparently fixed, but the fix seems to have disappeared.

The lack of the user level for the default admin user is that some plugins prohibit administration. Current workaround is to either manually create the entry in the database or to create an alternate admin user (for which the wp_user_level field is properly created and set to 10).

Change History (9)

comment:1 @bonaireguy6 years ago

  • Version set to 2.8.5

comment:2 follow-up: @filosofo6 years ago

User levels have been deprecated for years in favor of user capabilities. Any plugins still using levels are horribly outdated and should be fixed.

comment:3 @dd326 years ago

Something similar fixed in 2.7: #8317

comment:4 in reply to: ↑ 2 @bonaireguy6 years ago

Replying to filosofo:

User levels have been deprecated for years in favor of user capabilities. Any plugins still using levels are horribly outdated and should be fixed.

Doesn't help when the plug-in in question hasn't been updated in a couple of years (Email Notification by Watershed).

comment:5 @dd325 years ago

  • Milestone changed from Unassigned to Future Release

What PHP version was this under? Does it still occur under 2.9?

comment:6 @bonaireguy5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

I finally had a chance to check with a new WP install, and this problem has been resolved in WP 2.9.1.

Closing this bug.

comment:7 @nacin5 years ago

  • Milestone Future Release deleted

comment:8 @nacin5 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:9 @nacin5 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.