This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » copy of class in ezpublish admin

copy of class in ezpublish admin

copy of class in ezpublish admin

Monday 13 October 2014 12:47:06 pm - 9 replies


I have accidentally created a copy of a class in ezpublish admin.Now I am getting an error with files related to that class.


Any one know how to remove a created copy of class from ez publish admin.

Its like 


Copy of Country  

Now Copy of country is using instead of country.

Please help if some one can.Its a live site error.


Modified on Monday 13 October 2014 12:51:13 pm by upeksha ranawaka

Monday 13 October 2014 1:25:39 pm

If you aren't using 'Copy of country', you should be able to delete the class without any errors.

If you have any data of that class, remove it. There is a Objects column on the Classes page which indicates the number of objects of that content class. 

You should also set up a copy of your site on a development server to avoid affecting the production site.

Monday 13 October 2014 1:53:57 pm


But When i created the copy of country ,objects belongs to country class assigned to it.Now country has 1 object and copy of country class has 288 objects.If i delete the class will that data also delete?

and in an object relations attribute in country class

Object class

Copy of Country

is assigned sad.gif Emoticon


Monday 13 October 2014 6:25:53 pm

Hello upeksha,

eZ Publish does not do what your suggesting. IE: move data between content classes. So you must be mistaken.

The best thing I think you could do is to rename the 'copy of country' class identifiers (in the class admin) to match what the templates that use it expect / need. Essentially rename the two classes to swap name and identifiers and make sure that the attributes are right in your renamed 'copy of country' class.

There are other solutions like ezchangeclass extension but your still new and I don't think you should use it since like I said, eZ Publish has never provided even code to do what your suggesting happened here.

Also remember to backup the database several times properly before and after you make any change. You don't want to screw up the database.

Betsy is right you should not be working on production at all, you should be working on a separate dev environment.

I hope this helps!


Modified on Monday 13 October 2014 7:22:40 pm by // Heath

Monday 13 October 2014 7:08:36 pm

It is not allowing me to rename copy to country.sad.gif Emoticon.As you advised we are already using a dev server.But this thing happens accidentally click on create a copy of class buttonsad.gif Emoticon.


Thank you very much.Any more suggestions with some one? 

Monday 13 October 2014 7:22:23 pm

Hello upeksha,

It is only not allowing you to rename the copy to country because you already have a second class with that name.

You need to rename country to country_original and copy of country to country (in that order) to achieve the desired result.

Again your mistaken, eZ Publish users have been asking for years for the functionality your describing and they have refused to build such a system so I know without a doubt your confused on this point, eZ Publish by default does not include the functionality you describe.

I hope this helps!


Monday 13 October 2014 7:38:41 pm

Thank you very much.What i am talking is , I have a class group called payement.Then under that i have a class called the right side corner there is a small icon with a tool tip  saying create a copy of country class.


I accidentally clicked on that one.Then all the objects belongs to country class assigned to copy of country class.  happy.gif Emoticon

Monday 13 October 2014 8:52:39 pm

Hey Upeksha,

Your trollin' again!

Like Heath says so clearly.

eZ Publish does not have the feature to move objects to a different content class (at all dude) so you must be using some custom code or just be plain confused.

Best to drop this point (for now) and pick your battles more carefully.

We are trying to help you ...  




Tuesday 14 October 2014 11:27:27 am

Yes,may be , this is miscommunication.I am using ezpublish 4.3 and this happens to me.Did not be able to fix yet.

At least Is there any way that we can revert the changes done in ez_publish_admin interface ?


I am taking about an icon similat to  this page ""

Modified on Tuesday 14 October 2014 11:48:36 am by upeksha ranawaka

Tuesday 14 October 2014 1:21:59 pm


Sadly no, there is not a way to revert the change you describe except manually.

The process to revert the change you describe would have to be a manual one as I said in my previous message.

You need to rename country to country_original and copy of country to country (in that order) to achieve the desired result.

Take care. I hope this helps...



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from