Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3231 closed defect (bug) (fixed)

language_attributes() undefined in 5 minute install

Reported by: alanjcastonguay's profile alanjcastonguay Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: General Keywords:
Focuses: Cc:

Description

In a freshly emerged copy of wp2.1, there's no wp-config.php file. Traditionally, when a user visits the blog in this state, the 5 minute installer takes over, linking the user to /wordpress/wp-admin/setup-config.php.

If wp-config.php does not exist, wp_die() cannot output language_attributes, and throws a PHP Fatal error instead of displaying the useful error message. Depending on PHP config, the user is left with a blank screen, or the error:

PHP Fatal error: Call to undefined function language_attributes() in /Users/alan/Sites/wp21/wp-includes/functions.php on line 1112

I suggest that wp_die() failures to this degree don't bother outputting language information, and just continue on to dumping the error message and die().

Attachments (1)

function_exists_language_attributes_in_wp_die.diff (659 bytes) - added by alanjcastonguay 18 years ago.
diff to add function_exists test

Download all attachments as: .zip

Change History (2)

@alanjcastonguay
18 years ago

diff to add function_exists test

#1 @markjaquith
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4379]) wp_die() fix for 5 minute install from alanjcastonguay. fixes #3231

Note: See TracTickets for help on using tickets.