on ‎2019 May 06 12:41 PM
I am using smartedit 1811 version, and creating a new content page under pages section.
I understand that if a primary page already exists for the page type and template, SmartEdit will only allow you to create a variation page.
The question is smartedit provides a list of templates to choose from to select a template for creating new content page. How can i create a content page selecting an existing page template and in display condition selected as "primary", as doing this leads to error ERROR () () [RestHandlerExceptionResolver] java.lang.NullPointerException at de.hybris.platform.cmsfacades.cmsitems.predicates.PrimaryPageWithLabelExistsPredicate.lambda$0(PrimaryPageWithLabelExistsPredicate.java:40)
Thanks SM
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I had this same problem, it was due to another cmspage having a null entry in the p_label field.
Run a check on the cmspages to see the nulls and either delete the page or set a label.
select cmspage.p_uid,pagetemplate.p_name,cmspage.p_label ,
pagetemplate.p_name as TemplateName,
catalogversions.p_version,catalogs.p_id
from cmspage
join pagetemplate on pagetemplate.pk=cmspage.p_mastertemplate
join catalogversions on catalogversions.pk=cmspage.p_catalogversion
join catalogs on catalogs.pk=catalogversions.p_catalog
where p_label is null
order by pagetemplate.p_name
As a note i think this issue is more likely to happen to people that upgrade from older version of hybris who have accumulated many content pages over the years.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.