Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-3494

Problems with template deletion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • xCM 6.1.0
    • xCM 6.0.0
    • None

    Description

      If I remove a template from template.xml (but do not remove the template JSPs), the template and its details is still present in the jahia_pages_def table. Nevertheless when I navigate to a page based on that template, I get an exception and cannot display it.

      Furthermore even if I have already deleted all pages , based on that template, prior to removing it from template.xml, I get the exception:

      01.10.2008 14:27:16 ERROR [main] PageDefinitionHelper: Unable to find template 'MultilingualSearch' in the template set for site 'testSite'. There were already 1 page(s) created with this template. IDs: [40]. This will cause an exception when one of these pages will be called. (PageDefinitionHelper.java, line 152)

      When going to Administration Center -> Manage templates manual deletion is not working as I get:

      2008-10-01 14:36:07,328: ERROR [org.jahia.bin.JahiaAdministration] - Error during templates operation of a new element we must flush all cac
      hes to ensure integrity between database and viewing
      org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'JahiaTemplatesDeployerService' is defined
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:968)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
      at org.jahia.registries.ServicesRegistry.getService(ServicesRegistry.java:306)
      at org.jahia.registries.ServicesRegistry.getJahiaTemplatesDeployerService(ServicesRegistry.java:403)
      at org.jahia.admin.templates.ManageTemplates.editTemplate(ManageTemplates.java:281)
      at org.jahia.admin.templates.ManageTemplates.userRequestDispatcher(ManageTemplates.java:169)
      at org.jahia.admin.templates.ManageTemplates.<init>(ManageTemplates.java:126)

      TestRail: Results

        Attachments

          Activity

            People

              shyrkov Sergiy Shyrkov (Inactive)
              pap@commaro.com_old Benjamin Papez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.1.0