Submitted by : simon at: 2003-10-26T21:31:51+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Hello All:

I just installed the zwikitracker, but I got the following error when I tried to add an issue. Could you please tell me what's the problem? Thanks a lot in advance!

YH

Traceback (innermost last):

  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: wiki)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: issuetracker)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: issuetracker)
  File /usr/local/zope/lib/python/Products/ZWiki/ZWikiPage.py, line 221, in __call__
    (Object: issuetracker)
  File /usr/local/zope/lib/python/Products/ZWiki/ZWikiPage.py, line 233, in _render
    (Object: issuetracker)
  File /usr/local/zope/lib/python/Products/ZWiki/ZWikiPage.py, line 416, in render_stxprelinkdtmlhtml
    (Object: issuetracker)
  File /usr/local/zope/lib/python/OFS/DTMLDocument.py, line 127, in __call__
    (Object: issuetracker)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: issuetracker)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Let.py, line 76, in render
    (Object: Catalog="_.getattr(folder(),getCatalogId())")
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Let.py, line 76, in render
    (Object: newcategory="_.getattr(REQUEST,'newcategory','zwiki: general')"
  newseverity="_.getattr(REQUEST,'newseverity','normal')"
  newstatus="_.getattr(REQUEST,'newstatus','open')"
  newtext="_.getattr(REQUEST,'newtext','')"
  newtitle="newid+' '+_.getattr(REQUEST,'newtitle','')"
  newid="canonicalIdFrom(newtitle)")
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: createIssue(newtitle,newtext,newtitle,
                        newcategory,newseverity,newstatus,
                        REQUEST=REQUEST))
    (Info: newtitle)
  File <string>, line 2, in f
  File /usr/local/zope/lib/python/Products/ZWiki/Tracker.py, line 161, in createIssue
    (Object: issuetracker)
  File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 648, in __getitem__
    (Object: wiki)
 KeyError

tracker code has just changed --SimonMichael, 2003/03/11 21:29 GMT
You might have a version problem. If using eg zwiki 0.16, use the IssueTracker code from ZWiki/content/tracker/IssueTracker.stxdtml. If you're using the latest zwiki-cvs, use the IssueTracker page on this site.

tracker code has just changed --SimonMichael, 2003/03/11 21:38 GMT
Also if using the latest code, your issue pages must be renamed, see recent GeneralDiscussion. Visiting ISSUEPAGE/upgradeId or SOMEPAGE/upgradeAll should do that for you. At present it will also lose your issues' creator and creation time information.

2003/03/11 22:59 GMT
Simon:

I still get the same error message. Your help is appreciated!

YH

SimonMichael, 2003/03/21 20:29 GMT
YH - if you are willing to upgrade, I would install the latest tracker code instead of debugging this. However this involves quite a few changes to zwiki, your IssueTracker page and your existing issue pages, so you may want to wait for the release at the end of the month. (If you can't upgrade, this should be easy enough for a suitably motivated zope hacker to debug.)

property change --simon, 2003/05/09 22:17 GMT
Status: pending => closed


comments:

... -- Thu, 07 Aug 2003 09:41:35 +0000 reply
Hi, I had the same problem. I solved it by creating 2 new indexes in the ZCatalog: 1. Fielindex id 2. Textindex title

Also I've created the metadata for it: id and title. After that it works fine.

Hope this helps Elke