Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#30313 closed defect (bug) (invalid)

get_blog_details gets Fatal error

Reported by: spacedmonkey Owned by:
Priority: normal Milestone:
Component: Networks and Sites Version: 4.0
Severity: normal Keywords:
Cc: Focuses: multisite

Description

When calling the get_blog_details function from sunrise.php, it gives a Fatal error.

Fatal error: Call to undefined function untrailingslashit() in /htdocs/wp-includes/option.php on line 110

Change History (1)

#1 @jeremyfelt
12 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

This is actually expected behavior. sunrise.php loads very early in the boot process as a way to allow the routing of various requests or for various tasks to be performed before WordPress loads a network or a site.

get_site_by_path() is available (see ms-load.php), and that may help a bit. Otherwise look at performing a manual query on the blogs table.

Note: See TracTickets for help on using tickets.