[wp-trac] [WordPress Trac] #30003: Database error when site not found in multisite

WordPress Trac noreply at wordpress.org
Thu Oct 16 21:48:32 UTC 2014


#30003: Database error when site not found in multisite
--------------------------------+------------------------------
 Reporter:  spacedmonkey        |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  4.0
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by jeremyfelt):

 Replying to [comment:2 spacedmonkey]:
 > if I gave Wordpress a url that wasn't in my network, it would redirect
 the network site

 This is still expected behavior, but WordPress needs either
 `DOMAIN_CURRENT_SITE` and `PATH_CURRENT_SITE` to be populated in `wp-
 config.php`, `$current_site` to be populated through `sunrise.php`, or the
 `$current_site` global to be filled in via the lookup process so that it
 knows what network to redirect to.

 Do you have a way of sharing your sunrise code?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30003#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list