Dealing with edit conflicts

Because of the nature of eZ Publish, sometimes there will be conflicts when it comes to content editing. This usually happens when two people are attempting to work on the same object. Another scenario is when somebody exits the edit interface without publishing the object that is being edited. Regardless of the actual reason, you'll sooner or later encounter warnings titled "Possible edit conflict". The following text reveals the different conflicts along with explanations and solutions.

Unpublished draft problem - same user

Sometimes when you edit an object, you might accidentally close the browser or simply click the "Store and exit" button. What will happen then is that the object will have a draft that is not published. Whenever you try to re-edit the object the system will warn you about this. The following image shows how this warning looks like.

Edit conflict - same user.

Edit conflict - same user.

The system is simply trying to tell you that you've already started editing this object but have not published the content yet. Please note that you might have left several drafts. If so, the window below the warning will show all your unpublished drafts for this object.

Possible solutions

Unpublished draft problem - different user

Sometimes somebody else may be editing the same object that you wish to edit. It might be that the other person is editing it at the same time, or that the other person left an unpublished draft. No matter what, when you try to edit the same object, the system will display a warning indicating that there is a conflict. The following image shows how this warning looks like.

Edit conflict - different user.

Edit conflict - different user.

The system is simply trying to tell you that you should be careful, because somebody else is working on the same object. Please note that there might be several drafts in the list. However, the usual case is that there is just one. Unlike in the previous scenario, you can not edit the draft (which is causing the conflict) because it belongs to a different user.

Possible solutions

Unpublished draft problem - multiple users including you

Sometimes somebody else may be editing the same object that you wish to edit. In addition, there might be drafts that you have left on the system. In this case, the administration interface will display a warning that is similar to the ones shown in the previous cases. The following image shows how this warning looks like.

Edit conflict - multiple users.

Edit conflict - multiple users.

This is the worst case scenario and you should really contact the other person(s) before doing anything else. In addition, you should get rid of your own drafts.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.