Under 4.7.4 I get from the Teampage module the following error message:

warning: usort(): The argument should be an array in /var/htdocs/www.orthopoint.de/htdocs/bilder/modules/og_teampage/og_teampage.module on line 168.
warning: Invalid argument supplied for foreach() in /var/htdocs/www.orthopoint.de/htdocs/bilder/modules/og_teampage/og_teampage.module on line 169.

Do you have any idea how to solfe this problem ?

Thank you in advance.

A.M.

Comments

MartinSfromB’s picture

Did you add some users / members to the group?

orthopoint’s picture

yes I did. But all with the same IP number because I subscribed three addresses from me.

joetomgo’s picture

Title: Error Message » Error Message usort()
Assigned: Unassigned » joetomgo
Priority: Critical » Normal

Using og_teampage.module,v 1.5.2.8 2006/12/09 07:29:18, I continue to get the error message:warning: usort() [function.usort]: The argument should be an array in /home/communit/public_html/modules/og_teampage/og_teampage.module on line 168.

None of the 4 members of my group display in the module. Any help is greatly appreciated.

cioplus’s picture

I am getting the same. If it helps it is a PHP error indicated in my log. I am running PHP 5.1.6, IIS and Drupal 4.7.5.

The Team Page seems to operate OK other than that but I am just getting into them and have not finished implementing yet.

By the way how about a pick list for selecting uses to invite to the team or have a missed this so far.

peppelorum’s picture

The problem comes from the building of the array.

Changing row 146 from

$sql = "SELECT u.uid, u.name, ou.* FROM {og_uid} ou INNER JOIN {users} u ON ou.uid = u.uid WHERE ou.nid = %b AND u.status > 0 AND is_active >= $min_is_active AND is_admin >= $min_is_admin ORDER BY u.name ASC";

to

$sql = "SELECT u.uid, u.name, ou.* FROM {og_uid} ou INNER JOIN {users} u ON ou.uid = u.uid WHERE u.status > 0 AND is_active >= $min_is_active AND is_admin >= $min_is_admin ORDER BY u.name ASC";

fixes this, but then all members gets listen in all the groups;-) So there is something wrong with the %b in the first sql.

peppelorum’s picture

Ignore my previous comment, the installation of my og and teampage was corrupted and I hadn't really figured out how teampage worked...

robertdjung’s picture

i've got the same errors being thrown.

robertdjung’s picture

nevermind. I suppose this works fine, and perhaps the docs need updating. I was under the impression this module added a page to the group called "my team" -- like a "meet the team" type page. Whereas I guess it's only meant as a group home page, and that works fine, but isn't what I was thinking when i first installed it and had the errors. Perhaps I can use this to create a separate "team" page, but I'm still learning. Thx.

MartinSfromB’s picture

Status: Active » Closed (fixed)