mod_admin_extra fails to load

I have download the mod_admin_extra from svn trunk.. But somehow it is failing when i am going to create a shared group with this command ashish:~# ejabberdctl srg_create group3 localhost name desc group3

It is failing like this

Problem 'error undef' occurred executing the command.
Stacktrace: [{ejabberd_regexp,split,["group3","\\\\n"]},
             {mod_admin_extra,srg_create,5},
             {ejabberd_ctl,call_command,3},
             {ejabberd_ctl,try_call_command,3},
             {ejabberd_ctl,process2,3},
             {ejabberd_ctl,process,1},
             {rpc,'-handle_call_call/6-fun-0-',5}]

I searched it on google but no help, but looking at the source I can not describe what need to be changed, can anybody help me out with this

srg_create(Group, Host, Name, Description, Display) ->
    DisplayList = case Display of
        [] -> [];
        _ -> ejabberd_regexp:split(Display, "\\\\n")
    end,
    Opts = [{name, Name},
            {displayed_groups, DisplayList},
            {description, Description}],
    {atomic, ok} = mod_shared_roster:create_group(Host, Group, Opts),
    ok.

You are trying to use a

You are trying to use a recent mod_admin_extra, which works with ejabberd 2.1.10 and newer. But you are using an older version of ejabberd.

Solutions:
A) update to ejabberd 2.1.10 or newer
B) downgrade mod_admin_extra to an older version: svn up -r 1119

Syndicate content