Accessed None Errors when Packaging for Windows

I am trying to build my first multiplayer game. I am using Advanced Sessions plugin and the steam system script on the UE4 forums.

https://forums.unrealengine.com/community/community-content-tools-and-tutorials/41043-advanced-sessions-plugin

The program works perfectly when it is in the editor, but there are issues when I try to package it.

Here is my output log after trying to package in windows 64:

PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Add to Viewport in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set bShowMouseCursor in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue
PackagingResults:Error: Error Unknown Error
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set bShowMouseCursor in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue
LogBlueprint:Error: [Compiler PersistentLevel.MainMenu] Error This blueprint (self) is not a UserWidget, therefore ’ Target ’ must have a connection.
BlueprintEditorCompileResults:Error: Error This blueprint (self) is not a UserWidget, therefore ’ Target ’ must have a connection.
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set Visibility in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Add to Viewport in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set bShowMouseCursor in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue
PackagingResults:Error: Error Unknown Error
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set Visibility in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Add to Viewport in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set bShowMouseCursor in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set Visibility in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Add to Viewport in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Set bShowMouseCursor in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue

Below are attached screenshots of my code. The first is the level blueprint that has the main menu widget.
The second is the main menu widget that creates a session and joins it.

Good practice is to promote the return value from Create Widget to a variable, then Get that promoted variable and add to Viewport . You should do this with pretty much anything you create in runtime(there are exceptions)

If the Set Visibility node doesn’t know what its referencing (because you don’t have a reference) then no specific widget’s visibility can be set(Accessed None).

As here:

PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property CallFunc_Create_ReturnValue from function: ‘ExecuteUbergraph_MainMenu’ from node: Add to Viewport in graph: EventGraph in object: MainMenu with description: Accessed None trying to read property CallFunc_Create_ReturnValue PIE:Error: Error Blueprint Runtime

If this helped you in any way, please mark the post as answered to help others who may find this issue, or alternatively you can reply and I’ll get to it when I can.