I just posted this on the discussion for the multi site manager plugin page at http://wpmudevorg.wordpress.com:
I too, with a wordpress-mu-1.2.1 site, the new 002 plugin, received the dreaded "Fatal error: Cannot break/continue 1 level /j/random/path/html/wp-admin/admin-db.php on line 669" when trying to change the theme.
I'd been using instructions from the following discussion:
<http://mu.wordpress.org/forums/topic.php?id=2076&replies=24>:
So I started poking around in the WP_Site Meta table - wherein I noticed that the sites that were working had many more entries than the sites that did not. As Cafespain noted:
"Oh and don't forget to duplicate the records in the wp_sitemeta table for the new site or you won't have access to any themes (oops)."
And so I performed this step for the three recalcitrant sites: (edited slightly for clarity)
"4. Duplicate the wp_sitemeta entries for your new site:
insert into wp_sitemeta (site_id, meta_key, meta_value) SELECT x, meta_key, meta_value FROM wp_sitemeta WHERE site_id = 1
(change x to the id of the new site record created at step 3.)"
Voila! It works as advertised.
I'm not a programmer, so I'm wondering if there's a reason the WP_sitemeta data for the new sites isn't added? It'd be nice not to be required to launch into phpmyadmin when adding new sites.