warning: Invalid argument supplied for foreach() in /home/mysite.com/modules/user/user.module on line 1501.

I received this when I clicked on the Posted by: user link

in a CCK module, if that helps

Comments

ewhipple’s picture

If you have the Reports module installed, disable it. It returns an invalid value for hook_user(), and user.module is choking on it.

ewhipple’s picture

I opened an issue for the reports module; see http://drupal.org/node/107207. Although it covers the same symptoms as this issue, there could potentially be other modules returning a bad value for hook_user().

RobRoy’s picture

Status: Active » Closed (won't fix)

Closing this issue as it appears to be related to reports. Open an issue with the offending module instead of user.module if you find another problem.