I am getting the above error intermittently on my site, however realname functionality seems to work fine. The seems to have started when In installed the FB module.

The line in question seems to point at the user picture.

Any ideas to the cause and implications?

Comments

henrijs.seso’s picture

Title: warning: Invalid argument supplied for foreach() in realname.module on » FB causes warning: Invalid argument supplied for foreach() in realname.module
Project: Real Name » Drupal for Facebook
Version: 6.x-1.3 » 6.x-2.0-beta2
Component: Miscellaneous » Code
Category: support » bug
Priority: Minor » Normal

+1 here too, also started with FB module which probably is trying to replace username too... its not going away even if realname Override username theme is OFF. Maybe Drupal for Facebook could just provide field for Realname instead of theming username theme?

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

I don't have realname installed. It's not clear to me the problem lies with Drupal for Facebook, if the error occurs in realname.module.

henrijs.seso’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

It turned out it was template rebuilding on every page load that caused error, also with rules module. Ill investigate how well FB plays with Realname, so far its ok.

nadams84’s picture

@mansspams - did you manage to fix the conflict with realname + DFF?

If so what was the cause and fix?

westis’s picture

I also get this error and would be very interested in a fix. Drupal 6.17, RealName 6.x-1.3, Drupal for Facebook 6.x-3.x-dev (2010-jun-30)

Dave Cohen’s picture

Project: Drupal for Facebook » Real Name
Version: 6.x-2.0-beta2 » 6.x-1.x-dev

If the problem is in Drupal for Facebook, someone please tell me how to fix it. Since the warning comes from realname.module, I think this issue belongs to that module, right?

nancydru’s picture

I had that a few times too. I turned off DFF and it went away.