Hi, I’m trying to use this function. Actually it works in my local machine, either via erl shell either in a ejabberd module. But if I try to use this ejabberd module in production, when it gets to the point where it has to do edoc_lib:escape_uri the result is this :
E(:ejabberd_hooks:190) : {undef,
[{edoc_lib,escape_uri,
["something to be escaped"]},
{mod_test,save_message,1},
{mod_test,on_message_sent,3},
{ejabberd_hooks,run1,3},
{ejabberd_c2s,session_established2,2},
{gen_fsm,handle_msg,7},
{proc_lib,wake_up,3}]}
Seems like the function is undefined. You know these erlang errors are not so explicit… Do I need to include something in order to have it work?
What I don’t understand is why the same function edoc_lib:escape_uri works in production if called inside an erlang shell…
EDIT : I answer myself, edoc_lib.beam was not in the path...