Restore default theme

Hello,

while experimenting for the first time with the “Canvas Editor” of the “Theme Editor” (Ctrl+Alt+T), I mistakenly duplicated an element from the “Admin Center” view - I believe the header, but I am unable to recall which one.

The problem is that now I am unable to access the “Admin Center“: when trying to access it, an error page is displayed with the message “An unexpected error occurred“. An excerpt of the stack trace and context is included at the end of this question. My questions are:

  • Is there a way of restoring the default theme? I have been looking through the documentation but did not have luck so far.
  • On a related note: is it possible to make a copy of an existing theme, in order to be able to customize it without fear of breaking the current one?

Thanks in advance!

duplicate Id for a component admin_divtab

             javax.servlet.ServletException: duplicate Id for a component admin_divtab
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.nuxeo.wss.servlet.BaseWSSFilter.doFilter(BaseWSSFilter.java:135)
    ...
Request Attributes:

javax.servlet.forward.request_uri : /nuxeo/nxadmin/default@view_admin
javax.servlet.forward.context_path : /nuxeo
javax.servlet.forward.servlet_path : /nxadmin/default@view_admin
javax.servlet.forward.query_string : tabIds=MAIN_TABS%3Aadmin&conversationId=0NXMAIN3
com.sun.faces.util.RequestStateManager : {com.sun.faces.renderKitImplForRequest=org.ajax4jsf.renderkit.ChameleonRenderKitFactory@199a0e, com.sun.faces.INVOCATION_PATH=.faces, com.sun.faces.ExternalContextImpl=com.sun.faces.context.ExternalContextImpl@1bc4277}
org.nuxeo.theme.url : nxtheme://theme/default/*/jsf-facelets/admin/default/default/default
org.nuxeo.theme.default.theme : galaxy/default
nbActiveUserHttpSessions : 1
org.nuxeo.theme.negotiation.result.collection : default
org.jboss.seam.core.manager : Manager([0NXMAIN3])
com.sun.faces.FORM_CLIENT_ID_ATTR : j_id182
currentSuperSpace : DocumentModelImpl(d59709ec-8f1d-49ed-9e91-1e0681f1dac0, path=/, title=d59709ec-8f1d-49ed-9e91-1e0681f1dac0)
requestedUrl : nxadmin/default@view_admin?tabIds=MAIN_TABS%3Aadmin&old_conversationId=0NXMAIN3
org.apache.myfaces.SCROLL_HIDDEN_INPUT_adminSelectorForm : true
...

Edit: forgot to mention that I am using the “Nuxeo Platform OVF (VirtualBox, RHEV, VMware ESX) Nuxeo Platform 5.5 / 735 MB / 13-Dec-2011” virtual machine.

0 votes

2 answers

842 views

ANSWER



You should be able to delete nxserver/data/themes to delete all theme configuration, then restart the server.

0 votes



Update: I managed to fix the Admin center page via the Theme Editor, by opening another page on the editor, clicking on “Preview theme” and browsing inside the preview to the Admin center - I was able to open the canvas editor within that frame and remove a duplicated “main area”.

However, I would like to know if there is a proper way of restoring the theme and/or make a copy of the current theme, any information would be appreciated.

0 votes