[wp-trac] [WordPress Trac] #7409: Typo in wp-config file, triggers errors on site

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 25 16:21:26 GMT 2008

#7409: Typo in wp-config file, triggers errors on site
 Reporter:  lionel_chollet  |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.6.1    
Component:  General         |     Version:  2.6      
 Severity:  normal          |    Keywords:           
 Typo in config file, triggering errors on user's site, in WordPress 2.6,
 file wp-config-sample.php, line 7:

 define('DB_CHARSET', 'utf8');

 triggers the following errors when wp-config-sample.php is renamed wp-

 Warning: array_keys() [function.array-keys]: The first argument
 should be an array in /[wordpress_directory]/wp-includes/widgets.php on
 line 686

 Warning: Invalid argument supplied for foreach() in /[wordpress_directory
 ]/wp-includes/widgets.php on
 line 686

 plus a fatal error with Search-Unleashed, on my site:

 Fatal error: Cannot use string offset as an array in /[wordpress_directory
 unleashed/search-unleashed.php on line 602

 Corrected line 7:

 define('DB_CHARSET', 'utf-8');

 solves the errors.

Ticket URL: <http://trac.wordpress.org/ticket/7409>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list