Mod_python error: "PythonHandler invenio.webinterface_layout"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/invenio/webinterface_handler.py", line 298, in _profiler
    return _handler(req)

  File "/usr/lib/python2.4/site-packages/invenio/webinterface_handler.py", line 316, in _handler
    return root._traverse(req, path)

  File "/usr/lib/python2.4/site-packages/invenio/webinterface_handler.py", line 210, in _traverse
    result = _check_result(req, obj(req, form))

  File "/usr/lib/python2.4/site-packages/invenio/websubmit_webinterface.py", line 490, in index
    return _index(req, **args)

  File "/usr/lib/python2.4/site-packages/invenio/websubmit_webinterface.py", line 484, in _index
    nbPg, curpage)

  File "/usr/lib/python2.4/site-packages/invenio/websubmit_engine.py", line 167, in interface
    return errorMsg(e, req, c, ln)

  File "/usr/lib/python2.4/site-packages/invenio/websubmit_engine.py", line 1535, in errorMsg
    body = create_error_box(req, title=title, verbose=0, ln=ln),

  File "/usr/lib/python2.4/site-packages/invenio/webpage.py", line 233, in create_error_box
    errors = errors)

  File "/usr/lib/python2.4/site-packages/invenio/webstyle_templates.py", line 570, in tmpl_error_box
    out = """

AttributeError: OperationalError instance has no attribute 'replace'