This error message is displayed on the "my account" page:

warning: Missing argument 4 for invite_user() in /home/{user}/public_html/modules/invite.module on line 142.

Also while I log out I'm getting the following error:

warning: Missing argument 4 for invite_user() in /home/{user}/public_html/modules/invite.module on line 142.
warning: Cannot modify header information - headers already sent by (output started at /home/{user}/public_html/includes/common.inc:384) in /home/blah/public_html/includes/common.inc on line 192.

I searched the forum archives but was not able to find any solutions. My Drupal version is 4.6.0!

Comments

bohtho’s picture

I get the same error. I hope this can be fixed soon since it seems like such a great module.

I would understand it if the module required the buddylist.module, but i specifically says in the documentation that it doesn't.

TDobes’s picture

This indicates that the module has not been upgraded to work with 4.6.

You can correct this problem by changing the line:
function invite_user($type, &$edit, &$user, $category) {
to
function invite_user($type, &$edit, &$user, $category = NULL) {

There may be other problems as well; I have not tested the module.

inspiredbylife’s picture

Thanks TDobes, that solves both the problems! :)

bohtho’s picture

Well, the error is gone, but I still can't see the Invite function anywhere on my website...

tatonca’s picture

The invite link shows up in the "Buddies" block on your user profile page. You can also get there with the path Invite. I think I put this in the documentation - I will double check just to make sure.

I will be commiting the fix this weekend. Hopefully that is the only 4.6 related issue. Thank you all for your input.

~Tat~

bohtho’s picture

"Buddies" block ?

It says in the documentation that it isn't dependant on the buddylist module. Nevertheless I have the buddylist module installed and activated and there's still no Invite link anywhere.

bohtho’s picture

But the invite path works of course, but after receiving an invitation mail and going to the user registration page, there's no "registration code" field. I am however using profile module so there's some other special fields there. Are these interfering ?

tatonca’s picture

re: interference from profile module?

Probably not. I am also using profile.module (though it's 4.5.2) and have no trouble. It's almost as though all the hook_nodeapi calls are somehow getting missed on your install. Very strange...

tatonca’s picture

re:hook_nodeapi

I meant hook_user - it's like invite_user() is not being called at all in your installation -

I've got nodeapi on the brain with other stuff I'm working on ... ;)

I've commited the fix in this thread to CVS - should be good ... works fine on my install. If someone else could test that would be grand.

Thanks

As for the other issues - maybe you could open another issue for it as I am closing this one. Please include the other modules you have installed and what version of drupal we are taking about.

Thanks

Dave

tatonca’s picture

closing this issue

tatonca’s picture