85degree / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
0 stars 0 forks source link

Can't load mod_mam_muc #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to add load module mam_muc, i see error in logs: 

Error initializing module 'mam_muc' on 'thirdlane.local': 
/usr/src/prosody10/lib/prosody/core/moduleapi.lua:160: Unable to load required 
module, mod_muc: MUC should be loaded as a component, please see 
http://prosody.im/doc/components
stack traceback:
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29: in function <...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29>
        [C]: in function 'error'
        ...sr/src/prosody10/lib/prosody/modules/muc/mod_muc.lua:10: in main chunk
        (tail call): ?
        [C]: in function 'xpcall'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29: in function 'pcall'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:249: in function 'load'
        /usr/src/prosody10/lib/prosody/core/moduleapi.lua:158: in function 'depends'
        ...sr/src/prosody10/lib/prosody/modules/mod_mam_muc.lua:22: in main chunk
        (tail call): ?
        ...
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:249: in function 'load'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:74: in function '?'
        /usr/src/prosody10/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/src/prosody10/lib/prosody/core/hostmanager.lua:89: in function 'activate'
        /usr/src/prosody10/lib/prosody/core/hostmanager.lua:43: in function '?'
        /usr/src/prosody10/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/src/prosody10/lib/prosody/../../bin/prosody:335: in function 'prepare_to_start'
        /usr/src/prosody10/lib/prosody/../../bin/prosody:401: in main chunk
        [C]: ?
stack traceback:
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29: in function <...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29>
        [C]: in function 'error'
        /usr/src/prosody10/lib/prosody/core/moduleapi.lua:160: in function 'depends'
        ...sr/src/prosody10/lib/prosody/modules/mod_mam_muc.lua:22: in main chunk
        (tail call): ?
        [C]: in function 'xpcall'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:29: in function 'pcall'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:171: in function 'do_load_module'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:249: in function 'load'
        ...usr/src/prosody10/lib/prosody/core/modulemanager.lua:74: in function '?'
        /usr/src/prosody10/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/src/prosody10/lib/prosody/core/hostmanager.lua:89: in function 'activate'
        /usr/src/prosody10/lib/prosody/core/hostmanager.lua:43: in function '?'
        /usr/src/prosody10/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/src/prosody10/lib/prosody/../../bin/prosody:335: in function 'prepare_to_start'
        /usr/src/prosody10/lib/prosody/../../bin/prosody:401: in main chunk
        [C]: ?

When changing from: "local mod_muc = module:depends"muc";" to:"local mod_muc = 
module:require "muc";" it loads, but event handlers don't fire for: 
"module:hook("muc-broadcast-message".... "

Original issue reported on code.google.com by sarumjan...@gmail.com on 13 Apr 2015 at 6:37

GoogleCodeExporter commented 9 years ago
Issue fixed, i had to put modules_enabled = { "mam_muc" } under the Compontent 
... "muc" line. Thanks to Zash

Original comment by sarumjan...@gmail.com on 30 Apr 2015 at 12:40