Opened 9 years ago
Closed 9 years ago
#32011 closed defect (bug) (fixed)
Install fail if DO_NOT_UPGRADE_GLOBAL_TABLES flag is true
Reported by: | spacedmonkey | Owned by: | Oxymoron |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Upgrade/Install | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
WordPress fails to install with DO_NOT_UPGRADE_GLOBAL_TABLES flag set to true in wp-config.php file. There is no error message, you get to the final install screen, but the wp_user and wp_usermeta tables haven't created.
Attachments (2)
Change History (13)
This ticket was mentioned in Slack in #core by jorbin. View the logs.
9 years ago
#8
@
9 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
We don't bother with truthiness for the DO_NOT_UPGRADE_GLOBAL_TABLES
global, should be just if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) {}
.
Note: See
TracTickets for help on using
tickets.
For this to happen you’d either have to create your own wp-config file before installation, or add that constant if WP can’t create it itself.
I think the answer for this is to display a warning on the install screen if
DO_NOT_UPGRADE_GLOBAL_TABLES
is defined as true. We have a precedent for this insrc/wp-admin/network.php
for displaying a message if you attempt to create a network with the constant defined.