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
Comment #1
bohtho commentedI 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.
Comment #2
TDobes commentedThis 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.
Comment #3
inspiredbylife commentedThanks TDobes, that solves both the problems! :)
Comment #4
bohtho commentedWell, the error is gone, but I still can't see the Invite function anywhere on my website...
Comment #5
tatonca commentedThe 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~
Comment #6
bohtho commentedIt 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.
Comment #7
bohtho commentedBut 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 ?
Comment #8
tatonca commentedre: 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...
Comment #9
tatonca commentedre: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
Comment #10
tatonca commentedclosing this issue
Comment #11
tatonca commented