Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 9 months ago

#3128 closed defect (bug) (duplicate)

Wordpress's installation fails when the PHP-option magic_quotes_runtime is enabled.

Reported by: gertjan's profile Gertjan Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.4
Component: Administration Keywords:
Focuses: Cc:

Description

When a user enters his or her database settings, the entire wp-config-sample.php is read. This file is then searched for certain strings, which will then be replaced with the strings the user supplied. However, wp-config-sample.php contains quotes, which are automatically quoted because magic_quotes_runtime is enabled.
To add more confusion: the installation doesn't even complain! Before these replacements are made, the databaseconnection is tested using the user-supplied strings. These of course are correct, but strings in wp-config.php are not!

So:

  • wp-admin/setup-config.php should check for magic_quotes_runtime
  • wp-admin/setup-config.php should use the variables from wp-config.php to test the connection (after they have been replaced)
  • wp-admin/setup-config.php should use a better way to create this config, this is really ugly!

Change History (3)

#1 @JeremyVisser
18 years ago

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

Dupe

#2 @masquerade
18 years ago

If you're going to close as a dupe, please include the ticket number of the dupe.

#3 @JeremyVisser
18 years ago

Ok, sorry. Never done it before. Ticket is #3127.

Note: See TracTickets for help on using tickets.