cache_detail page gives TypeError exception

Bug #889024 reported by jfcgauss
This bug report is a duplicate of:  Bug #838978: ZMI ControlPanel DTML Bug. Edit Remove
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2

Bug Description

I have programmatically imported a directory tree of text files, with a directory tree depth of 4, up to 200 folders total, and more than 23 thousand text files into my Plone 4.1.2 site. More than 25 thousand tags are also imported from those documents.

Navigation and load times of pages is excellent, tags are working nicely, search form works great. But when I click on the edit link on the green edit bar to edit any of those pages, it takes 5 minutes to see the edit page with tinymce, and python executable goes crazy with %100 cpu during this 5 minutes. Debug console does not show any problem at this point.

While trying to debug this problem I was suggested to check cache details in Zope ZMI, so when I visit Control_Panel/Database/cache_detail I get the following traceback (cache_extreme_detail link works, these links are at Control_Panel/DebugInfo/manage_main):

  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 46, in call_object
  Module App.CacheManager, line 105, in cache_detail
  Module App.CacheManager, line 105, in <genexpr>
TypeError: %d format: a number is required, not str
> /var/Home/serhat/Dev/Plone/eggs/Zope2-2.13.10-py2.7.egg/App/<genexpr>()
-> return '\n'.join('%6d %s'%(count, name) for count, name in detail)

I have Plone 4.1.2, Zope2 2.13.10, Python 2.7 on Ubuntu 11.04 desktop system (a typical custom buildout, not from the Plone 4.1.2 installer at

Revision history for this message
jfcgauss (jfcgauss) wrote :

my python is the system's python, which reports itself as version 2.7.1+

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers