You are here: Home / Documentation / How To's / How to clone a Plone site

How to clone a Plone site

by nguyen — published Jun 18, 2009 01:16 PM, last modified Aug 16, 2016 10:50 AM
in case you get a Zope error when you copy and paste a Plone site

If you get this error when (through the ZMI) you copy and paste a Plone 3.1 site:

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: _cloned_object_path

you can get around it by exporting the site to a .zexp file, then reimporting that .zexp file.  However you can't do it in the same container because Zope will complain about duplicate keys (basically the ID of the two Plone sites cannot be the same inside the same container, which is normally the root of your Zope).

To get around THAT, in your Zope, add a Folder, call it anything you like (eg. TestFolder), and inside TestFolder you can import the .zexp file you just created.