WordPress.org

Ready to get started?Download WordPress

Forums

Warning: Invalid argument supplied for foreach() in wp-settings.php line 113 (8 posts)

  1. bi11i
    Member
    Posted 9 years ago #

    Warning: Invalid argument supplied for foreach() in myforumdir\bi11i\wp-settings.php on line 113.

    I don't understand this as I'm getting it on every blog I upgrade. Is it because of active plugins?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Yes.
    Plugins must ALWAYS be deactivated BEFORE an upgrade :)

  3. bi11i
    Member
    Posted 9 years ago #

    is that way i'm seeing the error? i ask because i went ahead with the upgrade, and now things appear to be working fine. however, before i go too far along, I'd like to clarify that the error I was seeing was ONLY because I neglected to turn off the plugins? If i left them on during the upgrade am I doomed?

  4. esasse
    Member
    Posted 9 years ago #

    Unfortunatelly, the upgrade instructions doesn't say to deactivate plugins. :(

  5. seriocomic
    Member
    Posted 9 years ago #

    This MUST be changed...this small error has caused no end of problems...

  6. mikep
    Member
    Posted 9 years ago #

    Whether the plugins are deactivated or activated, I see this error message on a test 1.2.2 to 1.5 upgrade (xampp Linux). It *appears* to make no difference to the success of the upgrade either way. Anybody else got experience of this?

  7. mikep
    Member
    Posted 9 years ago #

    Doh. The answer was in these forums all along.

    in wp-settings.php

    change 'foreach ($current_plugins as $plugin)'

    to 'foreach ((array)$current_plugins as $plugin)'

    Another one line edit does the trick.

  8. hterry
    Member
    Posted 9 years ago #

    Okay, I've got this same error and I've added in the (array) in the section mentioned and I do not have any plugins activated but alas the error is still there. Is there anything else to fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.