# SlateThemeManager startup issue and preprocessor ALLOW\_THEMES is not disabling all code paths

**URL:** <https://forums.unrealengine.com/t/slatethememanager-startup-issue-and-preprocessor-allow-themes-is-not-disabling-all-code-paths/2664920>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, editor, slate\
**Created:** [October 13, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/slatethememanager-startup-issue-and-preprocessor-allow-themes-is-not-disabling-all-code-paths/2664920 "2025-10-13T16:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirsten](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kirsten](https://forums.unrealengine.com/u/Kirsten)\
**Post date:** [October 13, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/slatethememanager-startup-issue-and-preprocessor-allow-themes-is-not-disabling-all-code-paths/2664920/1 "2025-10-13T16:11:31Z")

</div>

We are seeing this message when starting the editor with 5.6.1

`LogObj: Display: Attempting to load config data for Default__SlateThemeManager before the Class has been constructed/registered/linked (likely during module loading or early startup). This will result in the load silently failing and should be fixed.`

We are running with

`obj.PrematureConfigLoadErrorLevel=1|2`

I wanted to disallow themes till the above issue is fixed. But when running with

`#define ALLOW_THEMES 0`

other code is breaking because it is missing the preprocessor check or am I missing something?

Eg. `Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp`

```auto

FPropertyEditorModule& PropertyEditorModule = FModuleManager::Get().GetModuleChecked<FPropertyEditorModule>("PropertyEditor");
		PropertyEditorModule.RegisterCustomClassLayout("EditorStyleSettings", FOnGetDetailCustomizationInstance::CreateStatic(&FEditorStyleSettingsCustomization::MakeInstance));
		PropertyEditorModule.RegisterCustomPropertyTypeLayout("StyleColorList", FOnGetPropertyTypeCustomizationInstance::CreateStatic(&FStyleColorListCustomization::MakeInstance));

```

---

<div class="post-metadata">

**Author:** ![Kirsten](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kirsten](https://forums.unrealengine.com/u/Kirsten)\
**Post date:** [October 13, 2025, 6:16pm UTC](https://forums.unrealengine.com/t/slatethememanager-startup-issue-and-preprocessor-allow-themes-is-not-disabling-all-code-paths/2664920/2 "2025-10-13T18:16:49Z")

</div>

after fixing  
`#define ALLOW_THEMES 0`

I still see the original log message. Now coming out of the next line, because it is accessing the USlateThemeManager as well - `FStarshipCoreStyle::ResetToDefault()`

```auto
#if ALLOW_THEMES
		USlateThemeManager::Get().LoadThemes();
#endif
		FStarshipCoreStyle::ResetToDefault();

```

I see in git history that you tried to fix it beginning of the year

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/3/343bc5a1c273c290410db075f0d7610447da2c59.png)
