# Short config section used instead of long

**URL:** <https://forums.unrealengine.com/t/short-config-section-used-instead-of-long/474777>\
**Category:** Plugins\
**Tags:** error, settings, unreal-engine, Plugins, question\
**Created:** [November 21, 2020, 12:03am UTC](https://forums.unrealengine.com/t/short-config-section-used-instead-of-long/474777 "2020-11-21T00:03:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spidermined](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spidermined](https://forums.unrealengine.com/u/Spidermined)\
**Post date:** [November 21, 2020, 12:03am UTC](https://forums.unrealengine.com/t/short-config-section-used-instead-of-long/474777/1 "2020-11-21T00:03:34Z")

</div>

I created a class to store project settings, but when I attempt to read one I get the following fatal error:

> Short config section used instead of long MyPlugin.MyPluginSettings

```
#pragma once

#include "CoreMinimal.h"
#include "MyPluginSettings.generated.h"

UCLASS(config=Engine, defaultconfig, meta=(DisplayName="My Plugin's Settings"))
class MYPLUGIN_API UMyPluginSettings : public UObject
{
	GENERATED_BODY()
	
public:
	UPROPERTY(config, EditAnywhere)
	bool bEnabled;
};
// ----------
void UMyPluginBPLibrary::ReadProperty()
{
    bool bEnabled;
    if(GConfig->GetBool(TEXT("MyPlugin.MyPluginSettings"), TEXT("bEnabled"), bEnabled, GEngineIni))
    {
        UE_LOG(LogTemp, Warning, TEXT("MyPlugin.Settings: bEnabled: %d"), bEnabled);
    }
    else
    {
        UE_LOG(LogTemp, Error, TEXT("Failed to read property"));
    }
}

```

If I shorten it from “MyPlugin.MyPluginSettings” to “MyPluginSettings” it does not crash, but it fails to read the propertly.

---

<div class="post-metadata">

**Author:** ![Spidermined](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spidermined](https://forums.unrealengine.com/u/Spidermined)\
**Post date:** [November 23, 2020, 3:47pm UTC](https://forums.unrealengine.com/t/short-config-section-used-instead-of-long/474777/2 "2020-11-23T15:47:31Z")

</div>

Using the long name and prefixing the section with `/Script` worked, but there are other plugins that only use the long name.

> **[How get Project Settings values?](https://forums.unrealengine.com/questions/176660/how-get-project-settings-values.html)**
>
> Hi, How can i get/set values in Project Settings/Project/Description ? like Project Version, Company Name… ? I think it’s possible to read/write inside DefaultGame.ini with blueprint in realtime ? Thanks
