The config file is corruptNot An Issue
Hello i just downloaded the plugin and im getting an error

Promocodes v3.0.0: Failed to load config file (is the config file corrupt?) (Additional text found in JSON string after finishing deserializing object.)

Im getting this error with out change the config file

That means your config file is invalid. The plugin itself would not generate an invalid JSON file, so it would have to have been edited or changed somehow.
everything working fine with plugin but im getting this message, where i can test it to see if the config is valid?
In response to DarkNosS96 ():
everything working fine with plugin but im getting this message, where i can test it to see if the c...
When the error doesn't show, it'll be valid. You can check if a .json file is valid JSON by using a site such as http://www.jsonlint.com
In response to DarkNosS96 ():
i did it and i got the same error, i also took the default config from umod.org

https://p...
The default config is what is generated by the plugin, not copied from the site.
also the same

Merged post

i have delete the config, reload the plugin, it regenerate the config file but with same error
Same here with the original generated config file i get the same message. I dont edit anything. But it seems that the Keys work.
In response to BattleSheep ():
Same here with the original generated config file i get the same message. I dont edit anything. But...
It wouldn't be possible for it to generate an invalid config file, so I'm not sure how you'd see the same error. Could you provide the full error that you are personally receiving?

im taking this error

 

Promocodes v3.0.0: Failed to load config file (is the config file corrupt?) (Additional text found in JSON string after finishing deserializing object.)

 

in my previus server i had the same error but worked nice like now.. but why this is happening?

In response to DarkNosS96 ():
im taking this error Promocodes v3.0.0: Failed to load config file (is the config file corrupt?)...
Have you tried validating the file in a JSON editor? Sounds to me like there is ahidsen symbol from an editor or the encoding is wrong.
yeah i did it like u told me but still same
im getting this error with self generated config, with simple config from umod, and with my config based on self generated
In response to Wulf ():
Have you tried validating the file in a JSON editor? Sounds to me like there is ahidsen symbol from...
yes i have tried validating and the file is ok.

same issues, tried removing Promocodes.json and reloading plugin, used the json validator that you posted and says it's valid but i get this every time:

Unloaded plugin Promocodes v3.0.0 by LaserHydra
Promocodes v3.0.0: Failed to load config file (is the config file corrupt?) (Additional text found in JSON string after finishing deserializing object.)
Loaded plugin Promocodes v3.0.0 by LaserHydra

my config https://pastebin.com/Wb24sZfA
https://jsonlint.com/ comes back as valid json


what's the solution for this, anyone figure it out?
The Keys are working, you only have that message when the json is valid :)
Locked automatically