manendra1984 / prosody-modules

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

[muc_log_http] syntax error #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the muc_log and muc_log_http modules.
2. Access http://localhost:5290/muc_log/
3. Select the component and room

What is the expected output? What do you see instead?

Expected is a list of dates and links to the actual log.  Instead there is no 
output.  The error log shows the following:

  Apr 06 16:17:51 general   warn    Attempt to read a non-existent global 'rooms'
stack traceback:
    mod_muc_log_http.lua:658: in function 'callback'
    /usr/share/lua/5.1/prosody/net/httpserver.lua:98: in function 'call_callback'
    /usr/share/lua/5.1/prosody/net/httpserver.lua:168: in function </usr/share/lua/5.1/prosody/net/httpserver.lua:116>
    (tail call): ?
    ...sr/share/lua/5.1/prosody/net/httpserver_listener.lua:33: in function <...sr/share/lua/5.1/prosody/net/httpserver_listener.lua:19>
    (tail call): ?
    /usr/share/lua/5.1/prosody/net/server_select.lua:823: in function </usr/share/lua/5.1/prosody/net/server_select.lua:808>
    [C]: in function 'xpcall'
    /usr/bin/prosody:395: in function 'loop'
    /usr/bin/prosody:462: in main chunk
    [C]: ?
  Apr 06 16:17:51 general   error   Top-level error, please report:
mod_muc_log_http.lua:658: attempt to index field 'rooms' (a nil value)

What version of the product are you using? On what operating system?

I am using Debian Squeeze with prosody 0.7.0 and the most current muc_log_http 
(changeset 633:0d3174d5a1cc).

Original issue reported on code.google.com by p...@luon.net on 6 Apr 2012 at 2:35