ValueError: Disallowed subobject type: Plone Site plone 4.3.2 import zexp

Hello
I try to import content from another site using zexp
i get an error
Module Products.CMFCore.PortalFolder, line 421, in _verifyObjectPaste

ValueError: Disallowed subobject type: Plone Site

Does somebody knows that problem ?
thank you by advance

A Plone site can not (or at least SHOULD NOT) contain another site.
You are trying to import the ZEXP at:
http://localhost:8080/somesite
instead of
http://localhost:8080 ( or http://yourserver:port

If you just try to import some of the content from another site, you could do something like

  1. make a new folder on that site.
  2. Put all content you want to export in it
  3. Export that content as a ZEXP file

PS: This will only work if the sites have same add ons and version. Some links might be lost.
You will have to rebuild the catalog after import, I think.

If the sites are on the same (Zope) server, it should be possible to copy/paste it from one Plone site to the other

the source is on Windows plone 4.3.2 and the target on linux plone 1.3.1
when i move the export_file and I try to import it, the error comes :

Module Products.CMFCore.PortalFolder, line 421, in _verifyObjectPaste
ValueError: Disallowed subobject type: Plone Site

Try not to use export/import via "zexp". Instead copy over the "FileStorage" file (usually named "Data.fs"). The latter approach is more resilient.

should i copy just that file or the .index to ?
shoud i launch specific command after that ? (sorry I'm very junior on plone)

The "*.index" file is there only to speed up the startup. You can copy it as well but there is no big gain.

If source and destination installation have the same code (same plone versions, same add-ons in same versions), there is no need to do anything else. Otherwise, hopefully, the destination installation is newer and then you likely need some migration.