I can't delete a master page because it's being used
Issue
- I cannot delete a master page because it's being used, but we cannot find the usage.
-
I have the following error message:
- Error: You cannot delete master pages used by a page, a page template, or a display page template.
Resolution
- To resolve the issue, you would have to locate the source of the usage in your database.
- You can find the usage by following these steps:
- Search for the master page in the layout table:
for example:
SELECT * FROM lportal.layout where name like '%Master_Page_Name%';
- Based on the results locate the PLIDS that is connected to the master page in question.
- Search for the PLIDS in the layout table's masterLayoutPlid column
for example:
SELECT * FROM lportal.layout where masterLayoutPlid in (11312,11313);
- From the results you can find which page or page template, or display page template uses the master page in question.
订阅者专属内容
Liferay企业级订阅提供超过1500篇文章的访问权限,包括最佳范例,排查和解决问题,和其他有价值的解决方案。登录以获得全部权限。
登录