Problems with content Upload after Migration from Plone 4.3.10 to Plone 5.0.5

Hi,

i recently upgraded an old Plone 3 Site to Plone 4.3.10 and then to Plone 5.0.5.
Now i'm facing the Problem, that i can not Upload Media-Content (Pictures, PDF's etc.) to the old Content of the Site in TinyMCE.
It shows an Error "The File Transfer failed".
The event.log shows the following Error:


2016-07-15T11:18:14 ERROR Zope.SiteErrorLog 1468574294.720.526229789355 http://172.30.134.100:8080/intranet/@@fileUpload
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 plone.app.content.browser.file, line 159, in call
TypeError: ('Could not adapt', <PloneSite at /intranet>, )

In Plone 4.3.10 everything works as expected.
What am i doing wrong? Or did i miss something in the migration?
Any suggestions would be great.

Thanks,

Jan

I remember I had similar error. I think I had solved it by installing lfollowing add-on's?. Especially needed for 'older packages' based on Archetypes
Archetypes-tools without content-types
Content-types (plone.app.contenttypes)

And probably these language add-on's as well...
archetypes.multilingual
plone.app.multilingual

In buildout,cfg add
eggs =
Plone
Pillow
Products.PloneLanguageTool

Add a new Plone site on the same Zope and see if you have the same problem.
PS: In case it has something to do with languages, try making one site with english as language and one with the same as your site.

Adding PloneLanguageTool did not resolve the issue.

If i create a new Plone-Site, everything works perfekt. It's just the migrated Sites, that show the Problem.
So it has to be something inside the old Sites.

Is this happening on migrated folders or also on new folders (or whatever your type is).
This is subtle...

This line checks if the folder fti (or whatever is your type) is a dexterity one:

But your objects may be still an archetype object.

if you change:

if IDexterityFTI.providedBy(getattr(pt, type_)):

with:

if IDexterityFTI.providedBy(getattr(pt, type_)) and IDXFileFactory(self.context, None):

it may work.

If it works, you can migrate your existing objects:

Do we already have an issue opened for this topic?