Re: KeyError when publishing document

Martijn Faassen <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Benno Luthiger wrote:

>> Did you by any chance do anything with it, or possibly renamed or 
>> copied this silva root in the past?
> 
> Indeed, the silva root of the instance I exported the site was named
> differently then the silva root of the instance I work now, throwing
> the KeyError. Do you think this might be the cause of the problem?

It could be. This error in particular is unfamiliar to me. It depends on
what exactly happened, but the catalog keeps references to
object paths inside. If the name of the root changes (due to renaming or
copying), object paths may be still sitting there that point to nothing.
This may confuse the catalog.

One thing you could try is going to the service_catalog advanced panel
and doing a catalog update. That should at least throw away the 'bad'
references (though it won't index things that aren't in the index anymore).

Regards,

Martijn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.