[wp-trac] [WordPress Trac] #53830: Default filters try to create nonce during installation before options table exists
WordPress Trac
noreply at wordpress.org
Mon Aug 2 13:16:05 UTC 2021
#53830: Default filters try to create nonce during installation before options
table exists
-------------------------------------------------+-------------------------
Reporter: schlessera | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8.1
Component: Upgrade/Install | Version: 5.7
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug has- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* keywords: needs-patch good-first-bug => needs-patch good-first-bug has-
testing-info
Comment:
== Test Report
=== Env
- WordPress: 5.7.2 and 5.8
- OS: macOS Big Sur 11.5
- Localhost: Local (wp) with PHP 8.0, nginx, MySQL 8.0.16
- Browser: Chrome
=== Test Steps
- Step 1: Create a new site
- Step 2: Open the `wp-config.php` file in your favorite editor
- Step 3: Change the salt keys to empty string
{{{#!php
define( 'AUTH_KEY', '' );
define( 'SECURE_AUTH_KEY', '' );
define( 'LOGGED_IN_KEY', '' );
define( 'NONCE_KEY', '' );
define( 'AUTH_SALT', '' );
define( 'SECURE_AUTH_SALT', '' );
define( 'LOGGED_IN_SALT', '' );
define( 'NONCE_SALT', '' );
}}}
- Step 4: Open the `wp-admin/install.php` file in your browser (e.g.
`http://newinstall.local/wp-admin/install.php` where my test site's is
`http://newinstall.local`
- Step 4A: If message `Already Installed` appears, delete (drop) the
tables in your local site's database. And then refresh the browser.
Notice the error:
>**WordPress database error**: [Table 'local.wp_options' doesn't exist]
- Step 5: Apply the patch.
- Step 6: Refresh the browser.
Notice the error is gone and the installation can continue.
=== Results
See [attachment:"53830-test.gif"].
- Reproduced the issue ✅
- Applying [attachment:"53830.patch"] resolves the issue ✅
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53830#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list