This error occurs when other modules use the Flag Friend module.
As example the CCK Private Fields module.
Fatal error: Call to undefined function flag_friend_relationship_status() in /foobar/sites/all/modules/contrib/cck_private_fields/modules/cck_private_fields_flag_friend/cck_private_fields_flag_friend.module on line 18
The solution is to update the Flag Friend code with the following code:
/**
* Fallback function to bugfix incompatibilities with previous module versions.
*/
function flag_friend_relationship_status($friend_flag, $uid1, $uid2) {
return flag_friend_determine_friend_status($flag, $uid1, $uid2, $reset = NULL);
}
I hope to fix this for some time been existing error. The solution is very simple and I have already posted the solution.
Thank you for the assistance to make more user friendly the Flag Friend module.
Comments
Comment #1
sirkitree commentedThis function never appears in the 6.x-1.x version of this module. It is in 2.x which is still in -dev.
If you're using a module which is requiring 2.x of this module, then that module needs to be checking to make sure that the function is indeed present before calling it. It is up to the calling module to support what they are calling, not for the called module to support what is calling it.
Also, it looks as though they have fixed this already anyway. #775294: Fatal error: Call to undefined function flag_friend_determine_friend_status()