[wp-trac] [WordPress Trac] #32308: WP Multisite: Can't add new site.
WordPress Trac
noreply at wordpress.org
Fri May 8 11:28:28 UTC 2015
#32308: WP Multisite: Can't add new site.
-------------------------------------------------+-------------------------
Reporter: thesun2012 | Owner: chriscct7
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.2.3
Component: Formatting | Version: 4.2.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by pento):
Thinking about it some more, I don't think this is the correct fix for
this bug.
The problem is that `sanitize_option()` is calling
`$wpdb->strip_invalid_text_for_column()`, with `$wpdb->options` as the
table name. `WP_Error` is being returned because the table can't be found.
So, why is it that `$wpdb->options` can't be found? Is it set to the
incorrect value, or can the table not be accessed?
The options are being inserted when `install_blog()` calls
`populate_options()`, but the call in `install_blog()` happens after the
`switch_to_blog()` in `wpmu_create_blog()`, so `$wpdb->options` should
have the correct table name.
We need to be able to reproduce this bug to learn more.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32308#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list