• Resolved kwojniak

    (@kwojniak)


    We are seeing many PHP warnings from Apache with v1.3.11:

    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-member/core/um-actions-form.php on line 95
    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-member/core/um-actions-form.php on line 156
    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-member/core/um-actions-profile.php on line 69
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    We do not have that error reported anywhere on our forum, did you try to deactivate all other plugins and switch theme?

    Thread Starter kwojniak

    (@kwojniak)

    I don’t know the code, but unserialize() *can* return FALSE according to PHP’s documentation, and foreach() on FALSE can cause PHP to output that warning, so the code should probably handle this scenario.

    This isn’t causing our site to malfunction, so it’s not crucial that we debug it (we have many plugins installed), but I just thought I’d bring it to your attention.

    Thanks!

    Plugin Author Ultimate Member

    (@ultimatemember)

    However I do not see these warnings under any setup, do they happen for you in a specific setup?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP warning "Invalid argument supplied for foreach"’ is closed to new replies.