on 2024 Dec 03 12:16 PM
i have upgraded hybris version from 2011 to 2205.30 and facing issues with backoffice broken and not sure how to resolve this ?
Request clarification before answering.
Greetings!
Version 2205 introduced the theme functionality on Backoffice, so the issue maybe some broke CSS which is usually resolved by Resetting Backoffice Configuration. However, if the problem persists, you may need to follow steps described in SAP UXC (UX Consistency) Adaption | SAP Help Page.
Another possible cause which is not that common, is that the ootb media from themes (the themes' styles are saved as medias) where not impex'ed during the upgrade to the newer version, you can try to import that using the following impex:
$catalogVersion=catalogVersion(catalog(id[default='_boconfig']),version[default='hidden'])[unique=true]
$siteImageResource=jar:com.hybris.backoffice.constants.BackofficeConstants&/impex/images
$siteThemeResource=jar:com.hybris.backoffice.constants.BackofficeConstants&/backoffice/generated/cockpitng/cng/css/themes
$thumbnail=thumbnail(code, $catalogVersion)
$style=style(code, $catalogVersion)
# Insert thumbnail
INSERT_UPDATE Media; code[unique=true]; $catalogVersion; @Media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator][forceWrite=true]; mime[default = 'image/png']; folder(qualifier)[default = backofficethemes]
;backoffice_theme_quartz_light_thumbnail;;$siteImageResource/sap_quartz_light.png;;
;backoffice_theme_quartz_dark_thumbnail;;$siteImageResource/sap_quartz_dark.png;;
;backoffice_theme_morning_horizon_thumbnail;;$siteImageResource/sap_morning_horizon.png;;
# Insert style
INSERT_UPDATE Media; code[unique=true]; $catalogVersion; @Media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator][forceWrite=true]; mime[default = 'text/css']; folder(qualifier)[default = backofficethemes]
;backoffice_theme_quartz_light_style;;$siteThemeResource/sap_fiori_3/variables.css;;
;backoffice_theme_quartz_dark_style;;$siteThemeResource/sap_fiori_3_dark/variables.css;;
;backoffice_theme_morning_horizon_style;;$siteThemeResource/sap_horizon/variables.css;;
# Set thumbnail and style for theme
INSERT_UPDATE Theme; code[unique=true]; $style; styleVersion; $thumbnail
;sap_fiori_3;backoffice_theme_quartz_light_style;1;backoffice_theme_quartz_light_thumbnail
;sap_fiori_3_dark;backoffice_theme_quartz_dark_style;1;backoffice_theme_quartz_dark_thumbnail
;sap_horizon;backoffice_theme_morning_horizon_style;1;backoffice_theme_morning_horizon_thumbnail
# Insert constraint
INSERT_UPDATE NotNullConstraint;id[unique = true];severity(code);active;target;type(code);qualifier;descriptor(enclosingType(code),qualifier);
;CustomThemeCodeNotNullConstraint;ERROR;true;com.hybris.backoffice.model.CustomThemeModel;CustomTheme;code;CustomTheme:code;
It may fail if you don't have the _boconfig catalog, which is also a problem, in that case, you can try top run ant updatesystem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
2 | |
2 | |
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.