• ” 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 - 16 through 30 (of 36 total)
  • Thread Starter xyz

    (@xyz)

    Ryan,
    better let me have a full copy; I’ve downloaded a fresh1.5WP and I will install it when I get your altered full version; and we go from there.
    Thanks!

    Thread Starter xyz

    (@xyz)

    Ryan, Thank You!

    This worked instantly upon log-in; the site is up!

    CHEERS!

    I”ll go ahead and commit that for 1.5.1. Hopefully you won’t have any troubles installing and activating plugins. If you do, let us know.

    Thread Starter xyz

    (@xyz)

    Yes, Ryan, now I went into plugins, the only place I’ve seen WARNING
    and won’t go any further awaiting further instructions from you:

    Warning: Invalid argument supplied for foreach() in
    /all/my/name/site/www/blg/wp-admin/plugins.php on line 32

    and inside the Plugin Management box
    three rows repeating this same text:

    Warning: in_array(): Wrong datatype for second argument in
    /all/my/name/site/www/blg/wp-admin/plugins.php on line 77

    THANKS!

    I’m getting the same thing. Exactly the same thing. I’m still trying to peice together the solution.

    Let’s try this. In wp-admin/plugins.php, find the following line:

    $check_plugins = get_settings('active_plugins');

    After that line, insert these lines:

    if ( !is_array($check_plugins) ) {
    $check_plugins = array();
    update_option('active_plugins', $check_plugins);
    }

    That worked perfect.

    Error disappeared and I’m now able to activate plugins.

    Thanks sooo much! That was quick!

    Actually spoke too soon. Errors disappear but when you click activate it shows the “activated” message but then it nothing happens. This is what shows up in the active_plugins table.

    a:0:{}

    so somethings happening but not quite fixed. I hope that helps track down whatevers going on.

    Is there any chance I could see what is supposed to be in that array? What should I be looking at? it would be nice to at least manually add the correct settings to the db so I could start using the plugins.

    Thread Starter xyz

    (@xyz)

    I inserted above like this: is this the place?

    $check_plugin) {
    if (!file_exists(ABSPATH . ‘wp-content/plugins/’ . $check_plugin)) {
    $current = get_settings(‘active_plugins’);
    if ( !is_array($check_plugins) ) {
    $check_plugins = array();
    update_option(‘active_plugins’, $check_plugins);
    }
    unset($current[$_GET[‘plugin’]]);

    and I get the same result as in my post (Mar31) above…on line 32

    and instead three entries …on line 77
    I get three entries with…on line 81
    /www/blg/wp-admin/plugins.php on line 81

    I just installed it and am getting the same errors as xyz.

    I followed the fixes above and the result is this error on the plugins page:

    Warning: in_array(): Wrong datatype for second argument in …./wp/wp-admin/plugins.php on line 81

    I did install the plugin manager and activated some plugins – I don’t know if they work or not. And the site comes up and lets me post and everything but it would be nice not have these errors on the page

    Well, what can I say? I went back to the plugin page and the error is not there this time. I can’t duplicate the problem.

    Never mind!

    As near as I can tell this is due to using an old version of php. I don’t think any of us are getting anywhere because everybody else is using a recent version and we apperently are SOL. Ah’well I already told my host.. Not gonna update php? Well then I’m leaving.

    Anybody got any advice for php5, 1 gig space, 1 gig bandwidth a month, unlimited mysql db’s, and unlimited mail accts?

    Well actually I could do without that many mail accts.

    Thread Starter xyz

    (@xyz)

    This is what it says in my phpMyAdmin account:
    Welcome to phpMyAdmin 2.6.1-pl3
    MySQL 4.0.22-log
    ————————–
    November 1, 2004
    The MySQL server was upgraded with significantly more powerful hardware. We also upgraded the version to 4.0.21 during the process.
    You should notice dramatic performance gains with this new server in place.
    ————————-

    This worked with my now deleted previous,
    latest prior to 1.5 version of WP

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