Ticket #663 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

creating multiple blogs broken after svn rev 1333?

Reported by: bretm Assigned to: somebody
Priority: normal Milestone: WPMU 2.0
Component: component1 Version: 2.0
Severity: critical Keywords:
Cc:

Description

I'm tracking trunk atm, and as of 1333, I while I can create additional blogs after the first, their options are so screwed up that they're unusable.

siteurl isn't getting set... $guessurl in populate_options (schema.php) is incorrect, and the only thing being set in this loop:

if ( is_array($meta) ) foreach ($meta as $key => $value) {

update_blog_status( $blog_id, $key, $value ); update_option( $blog_id, $key, $value );

}

in wpmu-functions.php--wpmu_create_blog is this:

updating option, blog_id == 221, key == public, value == 1

Where should siteurl be getting set finally?

Change History

06/23/08 16:45:51 changed by bretm

Additionally, I can confirm that the options table is getting created, just doesn't have anything in there for siteurl:

mysql> desc wp_221_options; +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+----------------+ | option_id | bigint(20) | NO | PRI | NULL | auto_increment | | blog_id | int(11) | NO | PRI | 0 | | | option_name | varchar(64) | NO | PRI | | | | option_value | longtext | NO | | | | | autoload | varchar(20) | NO | | yes | | +--------------+-------------+------+-----+---------+----------------+ 5 rows in set (0.00 sec)

mysql> select option_value from wp_221_options where option_name = 'siteurl'; Empty set (0.01 sec)

mysql>

06/24/08 14:44:43 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

Fixed this in [1335], the options cache was messing things up.