Forums

Warning: Invalid argument supplied for foreach() on line 19 (4 posts)

  1. yvovandoorn
    Member
    Posted 3 years ago #

    Hey all,

    I upgraded a week ago to 2.0 w/o any issues. I disabled the plugins (only running wordpress defauls). I haven't changed anything since then. I didn't get this error up until today:

    Warning: Invalid argument supplied for foreach() in /usr/home/disgruntleddutch/public_html/wp-includes/capabilities.php on line 19

    I googled the error and only found people that upgraded having issues and very often they didn't kill their plugins. However this didn't show up until a week afte the upgrade.

    The blog is working ok (from what it seems), however I'd like to get it setup error free.

    Thanks!

  2. filosofo
    Member
    Posted 3 years ago #

    It's probably a plugin using an older user role system. You might check to see if there are newer versions of your plugins that have been upgraded for WP 2.0.

  3. jaredquinn
    Member
    Posted 3 years ago #

    The code that is causing the problem appears to occur in 2.0, it's the only reference I have found to a prefix_user_roles table... There is a similiar thread at http://wordpress.org/support/topic/56400

  4. Steph
    Member
    Posted 2 years ago #

    I have the same problem. Already solved it once, but can't remember how. The solution in the other thread removes the warning, but when I log into the admin area, I still have "no rights".

    I couldn't disable plugins before database import because my initial server crashed badly.

Topic Closed

This topic has been closed to new replies.

About this Topic