Description
I get a ConfigurationError the first time a visit a link. If I do a back and then visit the link again it works.
Steps to reproduce
load wiki http:/127.0.0.1/mywiki
- click on any link
if get ConfigurationError, click on back button in browser
- click on same link as above and the 2nd time will succeed
Example
here is the trace:
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/python-support/python2.4/MoinMoin/request.py in init (self=<MoinMoin.request.RequestModPy object>, req=<mp_request object>)
- 1838 env=req.subprocess_env
- 1839 self._setup_vars_from_std_env(env)
1840 RequestBase.init(self)
- 1841
- 1842 except Exception, err:
global RequestBase = <class 'MoinMoin.request.RequestBase'>
RequestBase.init = <unbound method RequestBase.init>
self = <MoinMoin.request.RequestModPy object>
/var/lib/python-support/python2.4/MoinMoin/request.py in init (self=<MoinMoin.request.RequestModPy object>, properties={})
- 111 # order is important here!
112 self.dict.update(properties)
- 113 self._load_multi_cfg()
- 114
- 115 self.isSpiderAgent = self.check_spider()
self = <MoinMoin.request.RequestModPy object>
self._load_multi_cfg = <bound method RequestModPy._load_multi_cfg of <MoinMoin.request.RequestModPy object>>
/var/lib/python-support/python2.4/MoinMoin/request.py in _load_multi_cfg (self=<MoinMoin.request.RequestModPy object>)
- 259 if not hasattr(self, 'cfg'):
260 from MoinMoin import multiconfig
- 261 self.cfg = multiconfig.getConfig(self.url)
- 262
- 263 def setAcceptedCharsets(self, accept_charset):
self = <MoinMoin.request.RequestModPy object>
self.cfg undefined
multiconfig = <module 'MoinMoin.multiconfig' from '/var/lib/python-support/python2.4/MoinMoin/multiconfig.pyc'>
multiconfig.getConfig = <function getConfig>
self.url = '127.0.0.1/mywiki//FrontPage/WikiSandBox'
/var/lib/python-support/python2.4/MoinMoin/multiconfig.py in getConfig (url='127.0.0.1/mywiki//FrontPage/WikiSandBox')
- 148 @return: config object for specific wiki
- 149 """
- 150 configName = _getConfigName(url)
- 151 try:
- 152 config = _config_cache[configName]
configName undefined
global _getConfigName = <function _getConfigName>
url = '127.0.0.1/mywiki//FrontPage/WikiSandBox'
/var/lib/python-support/python2.4/MoinMoin/multiconfig.py in _getConfigName (url='127.0.0.1/mywiki//FrontPage/WikiSandBox')
- 134 "farmconfig.py".
135 % {'url': url}
136 raise error.ConfigurationError(msg)
- 137
- 138
global error = <module 'MoinMoin.error' from '/var/lib/python-support/python2.4/MoinMoin/error.pyc'>
error.ConfigurationError = <class MoinMoin.error.ConfigurationError>
msg = '\nCould not find a match for url: "127.0.0.1/mywi...essions in the "wikis" list in\n"farmconfig.py". \n'
ConfigurationError
- Could not find a match for url: "127.0.0.1/mywiki//FrontPage/WikiSandBox".
Check your URL regular expressions in the "wikis" list in "farmconfig.py".
exceptions = <bound method ConfigurationError.exceptions of <MoinMoin.error.ConfigurationError instance>>
- innerException = (None, None, None)
- message = '\nCould not find a match for url: "127.0.0.1/mywi...essions in the "wikis" list in\n"farmconfig.py". \n
Component selection
- general
Details
MoinMoin Version 1.5.3 |
|
OS and Version Debian GNU/Linux Etch |
|
Python Version 2.4.4 |
|
Server Setup Apache2 mod_python |
|
Server Details set up as per Debian setup page on moinmoin wiki |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
The error msg '\nCould not find a match for url: "127.0.0.1/mywi...essions in the "wikis" list in\n"farmconfig.py". \n' should be pretty clear (see HelpOnConfiguration):
- For a single wiki you don't need a farmconfig.py file!
- For multiple wikis do setup farmconfig.py correctly, i.e. add 'mywiki' to the farmlist!
Plan
- Priority:
- Assigned to:
- Status: