• ” Invalid argument supplied for foreach() in /my/code/name/www/blg/wp-settings.php on line 113 “

    It showed up on the install log-in page with several other refering to this 113
    and it shows at the very top of the finished blog page.

    Now what?
    delete and reinstall, upload in ASCII, chemod? or what?
    start from sratch?

    Thank you!

Viewing 15 replies - 1 through 15 (of 36 total)
  • Do you have any activated plugins? If not, go in to your Admin Panel under PLUGINS and activate one.

    Thread Starter xyz

    (@xyz)

    I took my page to this validator page Valid XHTML
    and they came up with eleven points;
    I don’t know much about it, but I will re-install the works from scratch…

    Well, the error you posted has nothing to do with in/valid XHTML.

    Thread Starter xyz

    (@xyz)

    NuclearMoose:
    After log-in I get 8 items from 113 (above) to:

    Warning: Cannot modify header information – headers already sent by (output started
    re wp-login.php line 7,8,9,10, 185
    and re wp-includes/functions.php on line 1767 and on line 1767

    I’ll start fresh!

    Moderator James Huff

    (@macmanx)

    Thread Starter xyz

    (@xyz)

    I only had to enter my msql data in the wp-config.php; that’s all

    but yes, I had to changeDB NAME from ‘wordpress’ to ‘myname’-
    that probably went wrong somehow;

    ok I start fresh!

    Thread Starter xyz

    (@xyz)

    deleted everything; Same negative result,

    Warning: Invalid argument supplied for foreach() in
    /…/www/blg/wp-settings.php on line 113

    Warning: Cannot modify header information – headers already sent by (output started at /www/blg/wp-settings.php:113)
    in /…/www/blg/wp-login.php on line 7

    Warning: Cannot modify header information – headers already sent by (output started at …/www/blg/wp-settings.php:113)
    in /…/www/blg/wp-login.php on line 8

    Warning: Cannot modify header information – headers already sent by (output started at /…/www/blg/wp-settings.php:113)
    in /…/www/blg/wp-login.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at /…/www/blg/wp-settings.php:113)
    in /…/www/blg/wp-login.php on line 10

    Thread Starter xyz

    (@xyz)

    Downloaded fresh version, same result as above

    WordPress doesn’t work for me

    Thread Starter xyz

    (@xyz)

    Warning: Invalid argument supplied for foreach() in
    /…/www/blg/wp-settings.php on line 113

    why is this wp-setting.php creating this?

    I downloaded two versions with the same result?

    does everybody download this with this trouble attached?

    My 5 minute install time is up!
    Good Night!

    Moderator James Huff

    (@macmanx)

    I think you’re the first who has had this problem repeatedly. Either you aren’t deleting the files before you upload (overwriting files can lead to incomplete transfers), or your server is just plain messed up.

    Thread Starter xyz

    (@xyz)

    MacManx,
    no, I always clean-out, delete every WP file, nothing gets overwritten;
    all mysql files are emtied, otherwise, during re-install, WP tells me
    “WP is already installed”

    I only enter my mysql data into the wp-config.php file ,
    i touch nothing else;

    on the last fresh download, however,
    I noticed my virus-scan got active scanning it;
    i’ll shut it off while i’ll download another fresh copy.

    What about these PHP settings? any should be ‘off’ ?

    magic_quotes_runtime: on
    magic_quotes_gpc: on
    register_globals: on

    Thanks

    Thread Starter xyz

    (@xyz)

    Is anyone here to answer my last question above?

    I already downloaded two new version, cleaned out old stuff,
    but can’t get it going beyond as indicated above original problem.

    Thanks!

    Those PHP settings don’t matter. They can be off or on.

    A fresh install shouldn’t even reach line 113 since the active_plugins setting is empty by default. If you have phpMyAdmin available, browse the wp_options table and look at the field with an option_name of ‘active_plugins ‘. What is the corresponding option value?

    Thread Starter xyz

    (@xyz)

    ryan,
    I got to option_name but saw no ‘active_plugins’ and I don’t know much about how to look at this

    I deleted everything now;
    I got two MT blogs going which are really the result of not being able to install WP previously; now the same happens with the new 1.5WP

    If there is a specific WP problem re my host, look at it this way:

    Back in Nov/December their mysql “crashed” with all content gone;
    they installed a new mysql system etc

    I had a functioning WP for two years or so;
    then in Jan or february I deleted everything,
    cleaned out my website files and gifs and stuff
    then thinking, I downloaded a NEW advertised version of WP,
    not realizing it was the same old that I just deleted;
    but I could not install it
    (I posted some questions here at that time)

    That’s when I also deleted my old version MT
    and got the latest MT instead and made two blogs of it

    Now last week or so I saw all those NEW 1.5 versions WP
    and downloaded it ; again, I can’t install it (see above)

    …and different problems I never encountered before.

    So what question should be addressed to the server?
    before I download again and start over?
    and arrive for a third or forth time at the same results as above?

    Thanks!

    Here is a patch to wp-settings.php that will workaround the immediate problem. However, this may just be patching a symptom. You may run into another problem once we get you past this one.

    Anyway, take a look at the patch file. Find lines proceeded with a minus sign. Delete these from your copy of wp-settings.php. Replace them with the lines proceeded by plus signs. If you have trouble applying the patch, I can provide a full copy of an altered wp-settings.php.

Viewing 15 replies - 1 through 15 (of 36 total)
  • The topic ‘new install invalid argument…settings.php on line 113’ is closed to new replies.