Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-93787

Global page template disappear after import page template.lar

    Details

    • Story Points:
      0.25
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Go to Global site > Site builder > Page.
      2. View the Page Templates have 3 templates display.
      3. Go to Publishing > Import, import college-anddepartment-page-templates.lar form dependencies.
      4. Go to Site builder > Page.
      5. View the Page Templates.

      Expected Result:
      Page template display in the page.

      Actual Result:
      All templates disappear.
      Error in console:

      2019-04-11 06:22:54.747 ERROR [http-nio-8080-exec-7][IncludeTag:128] Current URL /group/global/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=maximized&p_v_l_s_g_id=20135&p_p_auth=4OM6EUXn generates exception: com.liferay.portal.kernel.exception.NoSuchLayoutPrototypeException: No LayoutPrototype exists with the primary key 0
      com.liferay.portal.kernel.exception.NoSuchLayoutPrototypeException: No LayoutPrototype exists with the primary key 0
              at com.liferay.portal.service.persistence.impl.LayoutPrototypePersistenceImpl.findByPrimaryKey(LayoutPrototypePersistenceImpl.java:4385)
              at com.liferay.portal.service.persistence.impl.LayoutPrototypePersistenceImpl.findByPrimaryKey(LayoutPrototypePersistenceImpl.java:4403)
              at com.liferay.portal.service.base.LayoutPrototypeLocalServiceBaseImpl.getLayoutPrototype(LayoutPrototypeLocalServiceBaseImpl.java:260)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.liferay.portal.kernel.service.LayoutPrototypeLocalServiceWrapper.getLayoutPrototype(LayoutPrototypeLocalServiceWrapper.java:313)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.liferay.portal.service.impl.LayoutPrototypeServiceImpl.getLayoutPrototype(LayoutPrototypeServiceImpl.java:106)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raven.song Raven Song
                Reporter:
                raven.song Raven Song
                Participants of an Issue:
                Recent user:
                Raven Song
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  26 weeks, 3 days ago

                  Packages

                  Version Package