Sounds like you still have some instances of OldContentType in your site. You need to remove them before exporting if you're going to import to a site that no longer has the code for OldContentType.
Maybe it's just /search - you click on the site's Search button. If you leave the search field empty it will show you everything on your site. You should be able to see a way to filter the search results by type.
The full error message is :
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module OFS.ObjectManager, line 627, in manage_importObject
Module OFS.ObjectManager, line 645, in _importObjectFromFile
Module ZODB.ExportImport, line 92, in importFile
Module transaction._transaction, line 260, in savepoint
Module transaction._transaction, line 257, in savepoint
Module transaction._transaction, line 690, in __init__
Module ZODB.Connection, line 1123, in savepoint
Module ZODB.Connection, line 587, in _commit
Module ZODB.ExportImport, line 175, in _importDuringCommit
ImportError: No module named module.content.oldcontenttype
This does seem to me to be something that can be fixed by wildcard.fixpersistentutilities. Beyond that, the only option might be for you to create and include in your buildout a "placeholder" module, but that is what wildcard.fixpersistentutilities does.
I tried @@deactivate-expert-mode-for-fixing-persistent-utilities and @@activate-expert-mode-for-fixing-persistent-utilities but nothing about old.module
find all instances of old.module.content.oldcontenttype using the catalog
remove them
uninstall old.module
you can do 2 and 3 from a debug instance:
start your plone using bin/instance debug
initialize properly your environment like this:
now do:
catalog = site.portal_catalog
results = catalog(portal_type='OldContentType')
for brain in results:
obj.getObject()
if obj is not None:
obj.aq_parent.manage_delObjects([obj.getId()])
import transaction
transaction.commit()
catalog = site.portal_catalog
results = catalog(portal_type='OldContentType')
for brain in results:
obj = brain.getObject()
if obj is not None:
print obj.__module__
other.module.content.oldcontenttype
2017-03-10 11:07:30 WARNING OFS.Uninstalled Could not import class 'OldContentType' from module 'old.module.content.oldcontenttype'
other.module.content.oldcontenttype
other.module.content.oldcontenttype
other.module.content.oldcontenttype
I have another module which as the same content type name, do you think this is the problem ?