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

WordPress Trac noreply at wordpress.org
Thu Oct 16 18:51:43 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
--------------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:   => reporter-feedback


Comment:

 This sounds like expected behavior **if** `DOMAIN_CURRENT_SITE` and
 `PATH_CURRENT_SITE` are not both defined to supply default network
 information.

 If the load process cannot find a matching domain for a site or a network
 and has no default to fall back on, we assume that multisite is not
 installed properly and fire `ms_not_installed()`.

 When a network is found (or predefined) and a site cannot be found, then
 the `ms_site_not_found` action should fire as part of the wrap up process
 before we redirect.

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


More information about the wp-trac mailing list