WordPress.org

Ready to get started?Download WordPress

Forums

config problem #1, #2, #3 (6 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    The wp-admin/install-config.php or wp-admin/install.php seem confused on a W2000+apache machine.
    #1
    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."
    #2
    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.
    //Yves

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    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...":
    <pre>
    $configFile = file("../wp-config-sample.php");
    $handle = fopen("../wp-config.php", "w");
    </pre>
    Made it through the rest of the install with no problems.
    Ionus

  3. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Yes this has already been fixed in the CVS.

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    Thanks for the answer.
    //Yves

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    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).
    http://htmlfixit.com/resource/temp/wordpress/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 http://notetab.com 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 http:htmlfixit.com using the chat link there and I will help you through it.
    Cheers for a great program! I love wordpress.

  6. amoen
    Member
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.