[wp-hackers] svn: language_attributes() undefined for 5 minute install

Alan J Castonguay alan at verselogic.net
Thu Oct 12 02:09:00 GMT 2006


In working on my wpopenid plugin, I was testing against wordpress' subversion trunk head, so 
I exported a fresh copy and tried to run the 5-minute installer. It didn't work.

On /wordpress/index.php, instead of the link to /wordpress/wp-admin/setup-config.php:
PHP Fatal error: Call to undefined function language_attributes() in 
/Users/alan/Sites/wp21/wp-includes/functions.php on line 1112

The link uses wp_die() for a pretty message.
As of [4259], wp_die() uses language_attributes() in the <html> tag.
language_attributes() is in includes/general-template.php
general-template.php is require_once()'d by wp-settings.php
wp-settings.php is require_once()'d by wp-config.php

If wp-config.php does not exist, language_attributes() is not available in wp_die(), so a 
PHP Fatal error is displayed instead of the useful error message / link. Depending on PHP 
config, the user is left with a blank screen, or the error above.

I believe my logic above to be sound, but would welcome commentary. I opened a ticket on 
trac: http://trac.wordpress.org/ticket/3231

-- 
Alan J Castonguay
519-567-2633


More information about the wp-hackers mailing list