[wp-trac] [WordPress Trac] #38066: 4.6.1-pl_PL wp-config-sample.php wrong DB_ definitions causes installation problem

WordPress Trac noreply at wordpress.org
Thu Sep 15 10:52:07 UTC 2016


#38066: 4.6.1-pl_PL wp-config-sample.php wrong DB_ definitions causes installation
problem
--------------------------+------------------------------
 Reporter:  asuder        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:  4.6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => I18N


Old description:

> In Polish version 4.6.1-pl_PL in file wp-config-sample.php in MySQL
> settings section all definitions have additional space after define(
>
> define( 'DB_NAME', 'nazwa_bazy_danych' );
> define( 'DB_USER', 'nazwa_uzytkownika' );
> define( 'DB_PASSWORD', 'haslo' );
> define( 'DB_HOST', 'localhost' );
> define( 'DB_CHARSET', 'utf8' );
> define( 'DB_COLLATE', '' );
>
> During installation this produces wp-config.php with no MySQL settings,
> because in wp-admin/setup-config.php preg_match pattern have no space:
>
> if ( ! preg_match( '/^define\(\'([A-Z_]+)\',([ ]+)/', $line, $match ) )
>
> After deleting this additional spaces installation works normal.

New description:

 In Polish version 4.6.1-pl_PL in file wp-config-sample.php in MySQL
 settings section all definitions have additional space after define(
 {{{
 define( 'DB_NAME', 'nazwa_bazy_danych' );
 define( 'DB_USER', 'nazwa_uzytkownika' );
 define( 'DB_PASSWORD', 'haslo' );
 define( 'DB_HOST', 'localhost' );
 define( 'DB_CHARSET', 'utf8' );
 define( 'DB_COLLATE', '' );
 }}}
 During installation this produces wp-config.php with no MySQL settings,
 because in wp-admin/setup-config.php preg_match pattern have no space:
 {{{
 if ( ! preg_match( '/^define\(\'([A-Z_]+)\',([ ]+)/', $line, $match ) )
 }}}
 After deleting this additional spaces installation works normal.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38066#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list