Warning: could not import class

Just today I noticed the following warning when I start my Zope instance in the foreground:

2019-11-26 11:48:03 WARNING OFS.Uninstalled Could not import class 'TutorialTopic' from module 'Products.ZopeTutorial.TutorialTopic'
2019-11-26 11:48:03 WARNING OFS.Uninstalled Could not import class 'GlossaryTopic' from module 'Products.ZopeTutorial.TutorialTopic'

Could somebody guide me how to find and delete these objects?

I could neither find them from browsing ZMI nor from the search dialog.

Zope 2.13.29, python 2.7.15, linux2

You could try log the OID of the broken object as well in https://github.com/zopefoundation/Zope/blob/e0d83b01eed43c5ef4b1dcd59f700fcf275ba420/src/OFS/Uninstalled.py#L74.

Using https://gist.github.com/icemac/b1fd1c47c6902d8aceafb0f62f90701c you could build a reference map to find the objects which are referencing the broken ones.

3 Likes

@icemac - thank you! I will try this and get back to you.

Hm, the passed in oid is None :frowning:

(Pdb++) pair
('Products.ZopeTutorial.TutorialTopic', 'TutorialTopic')

Any other hint?

jugmac00 via Plone Community wrote at 2019-11-29 10:50 +0000:

...
(Pdb++) pair
('Products.ZopeTutorial.TutorialTopic', 'TutorialTopic')


Any other hint?

This is likely a remains of the former "Zope Online Help".

In the old days, when Zope started up, it has registered
so called "Product"s with the "Control_Panel" (more precisely
app.Control_Panel.Products). There have been special
"products" for the "Zope Online Help" (such as Products.ZopeTutorial)
and each "product" could register there own online help pages.

For reasons, I no longer remember, these product registrations
have been made optional already some time ago.
Likely, the registrations as well as the remains of the "Zope Online Help"
have been dropped during the Zope 4 migration.

I suggest to delete app.ControlPanel.Products and see whether
the problem disappears.

Plone Foundation Code of Conduct