Automatic Zope Response wrote:
Zope reported an error for: Error Type: TextIndex.QueryError
Error Value: Malformed query
Traceback: Traceback (innermost last): File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: search) File /usr/local/zope/2.3.2_base/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: search) File /usr/local/hosting/accounts/swishdot/Products/Squishdot/SquishSite.py, line 798, in search (Object: Traversable) File /usr/local/hosting/accounts/swishdot/Products/Squishdot/SquishSite.py, line 903, in __call__ (Object: Traversable) File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/Catalog.py, line 651, in searchResults File /usr/local/zope/2.3.2_base/lib/python/Products/ZCatalog/Catalog.py, line 542, in _indexedSearch File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 513, in _apply_index File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 576, in query File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 640, in evaluate File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 601, in get_operands File /usr/local/zope/2.3.2_base/lib/python/SearchIndex/UnTextIndex.py, line 653, in evaluate TextIndex.QueryError: Malformed query
---------------------- REQUEST object dump: ---------------------- SERVER_SOFTWARE => Zope/Zope 2.3.1 (source release, python 1.5.2, linux2) ZServer/1.1b1
Huh? Why does that say 2.3.1 when the paths above suggest Zope 2.3.2?!
URL => http://www.squishdot.org/search author => batch_size => 20 body => Error Value: frexp() result out of range op => comments reviewed => 1 subject => textToSearch => Error Value: frexp() result out of range
You can reproduce this by going to Squishdot.org and searching for "Error Value: frexp() result out of range". Please don't do it too many times as I get an email for each one. If you do, I'll hunt down your IP address and kill you ;-) Any ideas? cheers, Chris
Huh? Why does that say 2.3.1 when the paths above suggest Zope 2.3.2?!
No idea.
You can reproduce this by going to Squishdot.org and searching for "Error Value: frexp() result out of range".
I'd imagine this has to do with the fact that parens are meaningful to the Catalog. This happens when you search for, e.g. just "()". It's possible to catch this error, but it's not possible to allow folks to search for things with parens in them currently. Sorry, - C
Chris McDonough wrote:
It's possible to catch this error, but it's not possible to allow folks to search for things with parens in them currently.
I'm not having a good time catching it: from SearchIndex import TextIndex try: brains = apply(self.searchResults,(REQUEST,),kw) except TextIndex.QueryError: brains = [] ...doesn't actually catch the exception :-S cheers, Chris
Got another one, thsi time from someone trying to upgrade to Squishdot 1.2.1: Error Type: IndexError Error Value: tuple index out of range The traceback is: ---------------- Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, in publish File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, in publish File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addSquishdot) File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addSquishdot) File /var/zope/Products/Squishdot/Squishdot.py, line 153, in manage_addSquishdot File /var/zope/Products/Squishdot/SquishSite.py, line 362, in __init__ (Object: Traversable) File /var/zope/Products/Squishdot/Squishdot.py, line 100, in addArt (Object: Traversable) File /var/zope/Products/Squishdot/SquishSite.py, line 745, in addPosting (Object: Traversable) File /var/zope/Products/Squishdot/Article.py, line 57, in edit File /var/zope/Products/Squishdot/Posting.py, line 68, in index File /usr/share/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 429, in catalog_object (Object: Traversable) File /usr/share/zope/lib/python/Products/ZCatalog/Catalog.py, line 414, in catalogObject File /usr/lib/python1.5/site-packages/SearchIndex/randid.py, line 89, in randid (Object: randint) File /usr/lib/python1.5/site-packages/whrandom.py, line 97, in choice IndexError: (see above) ---------------- Zope Version: Zope 2.3.2 (source release, python 1.5.2, linux2) Python Version: 1.5.2 (#1, May 20 2001, 19:46:05) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform: linux-i386 cheers, Chris
participants (2)
-
Chris McDonough -
Chris Withers