I've got the following warning when message informing that invited user has joined the site appeard:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_username' was given in /path/to/drupal/includes/theme.inc on line 617.
I found, that in line 268 in invite.module, replacing theme('username', $account) with $account->name:
drupal_set_message(t('!user (@email) has joined @site-name!', array('!user' => theme('username', $account), '@email' => $account->mail, '@site-name' =>variable_get('site_name', t('Drupal')))));
to
drupal_set_message(t('!user (@email) has joined @site-name!', array('!user' => $account->name, '@email' => $account->mail, '@site-name' =>variable_get('site_name', t('Drupal')))));
helps.
Any idea why? I've seen theme('username', $account) in other places of this invite.module file, and it works there...
I have Drupal 6.10 installed with Invite 6.x-2.x-dev.
Comments
Comment #1
barrett commentedI can't replicate the problem using 6.10 and Invite 6.x-2.x-dev. What theme are you using? Sounds like the problem is there rather than in the module.
Comment #2
sunI can't replicate this issue either and the current code looks solid.