Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#30313 closed defect (bug) (invalid)

get_blog_details gets Fatal error

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

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
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

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.