Thread:Extension talk:Scribunto/attempt to index field 'text' (a nil value) in luasandbox/reply (17)

Hello, I think I can help. Go to Module:Namespace detect and edit the page. Scroll to the very bottom and find the line that says:

v = mw.text.trim(v) -- Trim whitespace.

Change this to:

--v = mw.text.trim(v) -- Trim whitespace.

This comments out the whitespace trimming. If you have a whitespace trimming fucntion you may supplement here. The reason this error is happening is that the Lua libraryies for text functions is missing. The system can't find the file, "mw.text.lua" because it does not exist.