WP 1.0.1 install-config.php problem & fix
-
It seems that a few lines of code are missing in the 1.0.1 version of
install-config.php.
This may be due to a change right before theforeachin line 121. It causes two problems:$configFileis undefined$handleis undefined
I simply copied/inserted these lines from a previous version (was it 1.0?):
<pre>
if (!file_exists(‘../wp-config-sample.php’)) die(‘Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.’);
$configFile = file(‘../wp-config-sample.php’);
if (!is_writable(‘../’)) die(“Sorry, I can’t write to the directory. You’ll have to either change the permissions on your WordPress directory or create your wp-config.php manually.”);
$handle = fopen(‘../wp-config.php’, ‘w’);
</pre>
Then theforeachworks:
<pre>
foreach ($configFile as $line_num => $line) {
switch (substr($line,0,16)) {
….
</pre>
And a note: It might be helpful for some people ifinstall.phpwould say that the errors in the final step 3 of the process are during “final updates” and can be ignored. (Of course this was already said in this forum.)
The topic ‘WP 1.0.1 install-config.php problem & fix’ is closed to new replies.