The panels module is installed and working properly and when enabling the friendslist module I am getting an error on the user profile panels page.

warning: Invalid argument supplied for foreach() in /var/www/vhosts/domain.com/httpdocs/cms/sites/all/modules/panels/content_types/user_profile.inc on line 32.

Comments

irakli’s picture

Assigned: Unassigned » irakli

Please indicate the exact version of Panels you are using, as well as - which Friendlist modules you have enabled?

If you could, also, disable FriendList modules one by one and see if the error goes away with any of them, in particular - that would be a tremendous help.

Thank you

portait’s picture

It is panel version 6.x-2.0-alpha3 and Friendlist 6.x-1.x-dev. As soon as I turn on Friendlist UI the user gets that error message on his own profile.

irakli’s picture

Thanks for the clarification. It helps a lot. Will look into it and get back to you.

Witch’s picture

exactly the same error here!

subscribe

irakli’s picture

Sorry if it's a stupid question, but what exactly do you mean by "user profile panels page"?

Did you create a custom panel page that you are using as a user profile (can you describe what exactly you did if so)?

Or did you use the Advanced Profile Kit (http://drupal.org/project/advanced_profile) module?

portait’s picture

I am using Panels 6.x-2.0-alpha3 and Advanced Profile Kit 6.x-1.0-alpha1. I replaced the default user profile page using panels (user/%) and the Advanced Profile Kit.

irakli’s picture

Ok, that's what I thought, but to be on the safe side - it would be great if you can describe the exact sequence of steps you took to set up your panels-driven user profiles, so that i can replicate it and make sure i am debugging with the exact same setup.

thank you!

Witch’s picture

6.x-2.0-alpha3
Advanced Profile Kit 6.x-1.0-alpha1
6.x-1.x-dev

I installed the panels module -> apk -> authorpane

After that i tried to use the friendlist module.

furthermore i am using the latest cck and views (dev) versions.

I hope it helps a bit. Ask me, if the details are not enough.

portait’s picture

Installed Guestbook module version 6.x-2.x-dev
Installed Panels Version 6.x-2.0-alpha3
Installed Advanced Profile Version Kit 6.x-1.0-alpha1
Installed Views Version 6.x-2.2
Installed CCK Version 6.x-2.1
Installed Token Version 6.x-1.x-dev
Installed Rules Version 6.x-1.x-dev

Created a panel page with a flexibel layout.
The URL is set to: user/%
The CSS-ID is set to: user-profile

The content has the following settings: http://i44.tinypic.com/2llkp08.png

Remember that the users get this error message only when viewing their own profile.

pixelpreview@gmail.com’s picture

same problem and warnings with panels and friendlist ui

irakli’s picture

Sorry guys, things a little crazy with the DrupalCon.

I will be looking into this right after DCDC.

mercmobily’s picture

Status: Active » Fixed

Hi,

I am looking into this right now.
The new beta version of panels doesn't even have panels/content_types/user_profile.inc ...

Since this report is specific to a file that no longer exists, I am going to assume that it's fixed in the latest version of Panels.

BUT! Please open a new bug if there are still problems with the latest beta version of Panels and I will look into it.

Bye,

Merc.

mercmobily’s picture

Hi,

I spent another hour on this, and no, I couldn't reproduce this problem with the latest version of Panel. So, I assume this is fixed.
However, I installed Ctools, panel, content profile just to test this, and... well, maybe I missed sometiing.

So, please reopen with an exact list of steps to reproduce it (install module, create profile, etc.) for me to reproduce it and fix the issue.

But, I am fairly certain it's good now.

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)