I'm not sure where this is coming from but I have not changed much about my site yet this warning dialog has started to appear on profile pages.
warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/ctools/plugins/content_types/user_context/user_profile.inc on line 31
Comments
Comment #1
Tyler2499 commentedFeel special, i get two of these errors at the same time.
Comment #2
nickl commentedNeed more information to reproduce this fault please.
You can also try add the following code on line 31:
Maybe we get lucky and it will give you more tangible information to publish here.
Also explain your configuration and what you're doing when this happens. Do you only have core profile installed or a combination of profile modules. The more information you provide the better someone can help you or fix the problem.
I fiddled around a bit but alas...
Comment #3
darrellhq commentedFor me I'm not using core profiles module at all. It seems to happen when the administrator views someones user page. I will try your suggestion and see if that works. I actually just commented out the lines and it seems to work without any visible side effects.
Comment #4
merlinofchaos commentedMy best guess is that you've got a module providing some invalid data via hook_user and that warning is CTools expecting an array and not getting it. I went ahead and had it check to eliminate the warning, but I think you should consider this a sign of something else wrong with a module on your site.
Comment #5
darrellhq commentedI will have too look deeper into this. I figured it was CTools giving the error due to the module itself expecting an invalid array but I will check it out. I'm sure your right I have dome dev modules installed I think it may be friendlist module. That's just a guess