I am using panels with advanced profile kit. I am using the user profile panel that comes with panels when I run into this problem. When I add the pane for user profile to a panel page anytime after that if a user tries to load another users profile they get this error:
Fatal error: Cannot use object of type stdClass as array in /usr/local/www/asylum/sites/all/modules/panels/content_types/user_profile.inc on line 33
This error does not show up if you view your own profile.
Line 33 of that file is:
$item['class'] = "$module-". $item['class'];

that block of code:

// Retrieve and merge all profile fields:
$fields = array();
foreach (module_list() as $module) {
if ($data = module_invoke($module, 'user', 'view', '', $account)) {
foreach ($data as $category => $items) {
foreach ($items as $key => $item) {
$item['class'] = "$module-". $item['class'];
$fields[$category][$key] = $item;
}
}
}
}
I am not a PHP developer, but I can modify some bits and pieces of code to get things to work if I have to. I really love panels, and the way it makes the user profiles easier to work with. I would really like to resolve this problem and start moving forward with panels and profiles. I am using Drupal 6.8

Comments

esmerel’s picture

Status: Active » Closed (won't fix)

I'd suggest moving to the latest releases of panels and APK that are stable, if you haven't already done so. This issue's pretty old and the Panels 6.x-2.x line is deprecated at this point.