Opened 11 years ago
Closed 11 years ago
#32011 closed defect (bug) (fixed)
Install fail if DO_NOT_UPGRADE_GLOBAL_TABLES flag is true
| Reported by: | spacedmonkey | Owned by: | Oxymoron |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Upgrade/Install | Version: | 4.1 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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.
11 years ago
#8
@
11 years ago
- Resolution fixed
- Status closed → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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_TABLESis defined as true. We have a precedent for this insrc/wp-admin/network.phpfor displaying a message if you attempt to create a network with the constant defined.