On Wed, Nov 4, 2009 at 12:28 PM, Nicolas <[email protected]> wrote:
> > > /usr/local/share/lua/5.1//wsapi/common.lua:393: bad argument #1 to > 'ipairs' > > > (table expected, got nil) > > > stack traceback: > > > > > > > The initialization is done at line 431, so it looks like you are hitting > a > > strange corner case. Did you change anything in wsapi.fcgi? > > Actually in my copy, compared to the one I updated from luarocks a few > hours ago, > filename = "" > instead of nil in the one from luarocks. > But raeding the code I do not think it affects it. > It doesn't. > However I also changed the reload parameter to true, and thus it seems to > use an other code path, that is probably it. > Yeah, I independently figured that this is what must have been causing your issue, just wanted confirmation. :-) > The reload parameter seems to be the culprit, but that's annoying as it > is great when developping (my .ws files do not do much but load other > modules so they do not change often). > > > Apache shouldn't be messing with PATH_TRANSLATED in this way, these web > > servers and their inconsistent behavior drive me up the wall. I am going > to > Yes they are a funny bunch, aren't they .. > > > fire up an Apache and test, but is there anything different in your > Apache > > config? I used grab SCRIPT_FILENAME first, but an user discovered that > > Apache on OSX had a problem with that in some cases, so I switched. I > should > Ahah so funny :) > > > probably give up on autodetecting how the particular webserver works and > add > > an option to wsapi.fcgi... > > Probably the best then yes I suppose. > Anyway this means my "fix" is actually correct? > > Yes on both counts. I have updated the HEAD to correct for the "reload" issue, and added a "vars" parameter to wsapi.fcgi (and wsapi.cgi too) that controls the order of evaluation of SCRIPT_FILENAME/PATH_TRANSLATED (and defaults to testing SCRIPT_FILENAME first, then PATH_TRANSLATED second, as seems to be what worked in most cases before). I am going to do a bugfix release shortly. -- Fabio Mascarenhas
_______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
