The MU forums have moved to WordPress.org

foreach() error when updating profile (6 posts)

  1. frankpereiro
    Member
    Posted 17 years ago #

    Hi everyone,

    I get the following error everytime I try to update my password thru the admin panel

    Warning: Invalid argument supplied for foreach() in /home/frankper/public_html/wp-inst/wp-admin/profile-update.php on line 13

    I just downloaded the nightly build today in case you need to know that.

    What should I do? What do I need to fix?

    Greetz

  2. Maedi
    Member
    Posted 17 years ago #

    I am receiving this error too, and I just installed the nightly build of wordpress. In the admin panel there is also a similar error on the bottom of every page.

    Thanks for anyhelp

  3. swayze
    Member
    Posted 17 years ago #

    if (count($errors) != 0) {
    foreach ($errors as $id => $error) {
    echo $error . '<br/>';

    ^^^ The offending item

    says to me if errors > 0
    for each error as errorid echo the error and go to next line?

    I'm not a php hacker in truth, but I can read most source...

    having same issue with 2006-05-18 nightly...

  4. neuraxon77
    Member
    Posted 17 years ago #

    I'm having the same problems with 2006-05-20, any suggestions?

  5. drmike
    Member
    Posted 17 years ago #

    Sounds like there might be issues with 5-20. Maybe drowngrading might help.

  6. matrixmonkey
    Member
    Posted 17 years ago #

    nasty hack time.
    not sure if it work all the time but

    remove the offending part

    {
    foreach ($errors as $id => $errors) {
    echo $error . '<br/>';
    }
    exit;
    }

    and can't moan about the non existant error any more

About this Topic

  • Started 17 years ago by frankpereiro
  • Latest reply from matrixmonkey