# Main Menu error "CreateWidget called with a null class"

**URL:** <https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638>\
**Category:** Getting Started & Setup\
**Tags:** main-menu, unreal-engine, UE5-0, question\
**Created:** [June 2, 2022, 5:38pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638 "2022-06-02T17:38:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrmr\_2019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrmr\_2019](https://forums.unrealengine.com/u/jrmr_2019)\
**Post date:** [June 2, 2022, 5:38pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/1 "2022-06-02T17:38:33Z")

</div>

I’m a beginner and I can’t discover what is my mistake.  
When run Open Level module always does message log “CreateWidget called with a null class.”  
Please someone knows a solution?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/a/42a4b77c1b4fcb1c44415d0e45944b5fcc52e8c9.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 2, 2022, 5:56pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/2 "2022-06-02T17:56:18Z")

</div>

Try open level by name. Just to remove that from the equation?

---

<div class="post-metadata">

**Author:** ![jrmr\_2019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrmr\_2019](https://forums.unrealengine.com/u/jrmr_2019)\
**Post date:** [June 2, 2022, 7:22pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/3 "2022-06-02T19:22:40Z")

</div>

I’ve tried with open level by name with the same result.  
Not understand your question, sorry but my English isn’t very well…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 2, 2022, 7:51pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/4 "2022-06-02T19:51:32Z")

</div>

Does this level add a widget to the screen? Have you specified the type of widget?

---

<div class="post-metadata">

**Author:** ![jrmr\_2019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrmr\_2019](https://forums.unrealengine.com/u/jrmr_2019)\
**Post date:** [June 2, 2022, 8:01pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/5 "2022-06-02T20:01:04Z")

</div>

No, this level I try to open hasn’t a widget, for this reason I don’t understand. I tried to open other levels even new levels just creates and always I have the same result.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 3, 2022, 7:44am UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/6 "2022-06-03T07:44:04Z")

</div>

Have you been editing the game mode, or player controller?

---

<div class="post-metadata">

**Author:** ![jrmr\_2019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrmr\_2019](https://forums.unrealengine.com/u/jrmr_2019)\
**Post date:** [June 3, 2022, 2:09pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/7 "2022-06-03T14:09:57Z")

</div>

Yes, I created a new game mode class with new default pawn class.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 3, 2022, 2:59pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/8 "2022-06-03T14:59:26Z")

</div>

Wherever you have specified your game mode, project settings or world settings, I wonder if the HUD you’ve specified there has a problem. Try just clearing that

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/d/ced1db881654db6912eed60a460e3ae549717886.png)

---

<div class="post-metadata">

**Author:** ![jrmr\_2019](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jrmr\_2019](https://forums.unrealengine.com/u/jrmr_2019)\
**Post date:** [June 3, 2022, 7:33pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/9 "2022-06-03T19:33:36Z")

</div>

I’ve tested with different options of GameMode with the same result.  
Then I’ve created a new MenuLevel, BP Interface menu and even a new level to call it by button into new interface and again the same error.  
But at that moment I’ve thought … I have a different plugins installed for testing and probably something still be enabled … that was it!!!  
I had the CommonLoadingScreen plugin enabled and when I’ve disabled it all it works again!!!

Thanks a lot for your knowledge and help.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 3, 2022, 7:36pm UTC](https://forums.unrealengine.com/t/main-menu-error-createwidget-called-with-a-null-class/572638/10 "2022-06-03T19:36:22Z")

</div>

Ha! - excellent.
