Support » Installing WordPress » config problem #1, #2, #3

  • The wp-admin/install-config.php or wp-admin/install.php seem confused on a W2000+apache machine.
    If config.php exists, the first script and ask for first deleting the file. But after do it, and goes at next page, I get php warnings:
    “Warning: Invalid argument supplied for foreach() in g:\internet\homepage-aspeda\infos\forum\wp-admin\install-config.php on line 121”
    Warning: fclose(): supplied argument is not a valid stream resource in g:\internet\homepage-aspeda\infos\forum\wp-admin\install-config.php on line 142
    Warning: chmod(): No such file or directory in g:\internet\homepage-aspeda\infos\forum\wp-admin\install-config.php on line 143″
    (yes, it is sure no chmod function on a w2000 machine)
    Then I get this:
    “There doesn’t seem to be a wp-config.php file. You must create one before moving on.”
    So: I create one in the wp-admin directory, with 0 bytes…
    But I get the same “There doesn’t seem to be a wp-config.php file…”
    I create one manually, setting the correct parameters. WP goes on, but all reference are let to home.
    The variable $siteurl is certainly not set. This is in 123 occurrence(s) trouvĂ©es en 20 fichier(s)…
    Any suggestion to make a good setup would help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like there is some code missing from wp-admin/install-config.php.
    Lines 121 – 141 look like they’re copying a template file ($configFile) to another file ($handle, presumably a brand new wp-config.php).
    Unfortunately, I can’t find where $configFile and/or $handle are set up.
    I added these lines above “foreach ($configFile…”:
    $configFile = file(“../wp-config-sample.php”);
    $handle = fopen(“../wp-config.php”, “w”);
    Made it through the rest of the install with no problems.

    Moderator Matt Mullenweg



    Yes this has already been fixed in the CVS.

    Thanks for the answer.

    Same problem several weeks later … glad an answer is posted. Seems something this significant might justify an updated zip.
    The fix suggested above works fine!
    For those less willing to edit raw code, I have put up a file with the fix you may download. Assuming the following is clickable, then simply right click on the following link and save link to disk over the existing install-config.php (even though this file is named install-config.txt).
    If it was not clickable, then load it in your browser, control a to highlight all, control c to copy, open your existing install-config.php file in a PLAIN TEXT EDITOR (a good one if you don’t have one is where a free light version is available). Careful with notepad as it may insert improper characters. Save and upload and you should be good.
    If you have troubles visit me over at using the chat link there and I will help you through it.
    Cheers for a great program! I love wordpress.

    i’ve had the same problem and solved it now!!!
    somehow my install-config code was altered and changed every linebreak in a little square-symbol

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘config problem #1, #2, #3’ is closed to new replies.