Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Ultramarino

Errors on server startup, and reloads.

No Response 2.0.3

Hey mate, I'm getting errors on server startup:

Failed to call hook 'OnServerInitialized' on plugin 'PermissionsManager v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Configuration.DynamicConfigFile.get_Item (System.String key) [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.CheckCfg[T] (System.String Key, T& var) [0x00006] in :0 
  at Oxide.Plugins.PermissionsManager.LoadConfigVariables () [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.OnServerInitialized () [0x0004d] in :0 
  at Oxide.Plugins.PermissionsManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00274] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 

 

And sometimes, on a plugin reload:

o.reload InstantUntie

InstantUntie was compiled successfully in 2697ms

Calling 'Unload' on 'InstantUntie v1.0.6' took 169ms

Failed to call hook 'OnPluginUnloaded' on plugin 'PermissionsManager v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Configuration.DynamicConfigFile.get_Item (System.String key) [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.CheckCfg[T] (System.String Key, T& var) [0x00006] in :0 
  at Oxide.Plugins.PermissionsManager.LoadConfigVariables () [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.OnServerInitialized () [0x0004d] in :0 
  at Oxide.Plugins.PermissionsManager.OnPluginUnloaded (Oxide.Core.Plugins.Plugin plugin) [0x00012] in :0 
  at Oxide.Plugins.PermissionsManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00168] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 

Unloaded plugin Instant Untie v1.0.6 by MJSU

Failed to call hook 'OnPluginLoaded' on plugin 'PermissionsManager v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Core.Configuration.DynamicConfigFile.get_Item (System.String key) [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.CheckCfg[T] (System.String Key, T& var) [0x00006] in :0 
  at Oxide.Plugins.PermissionsManager.LoadConfigVariables () [0x00000] in :0 
  at Oxide.Plugins.PermissionsManager.OnServerInitialized () [0x0004d] in :0 
  at Oxide.Plugins.PermissionsManager.OnPluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00012] in :0 
  at Oxide.Plugins.PermissionsManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0013a] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 

Loaded plugin Instant Untie v1.0.6 by MJSU

 

Undecided if I should have post this on Support or Questions, went for support ^^

eof

Share this comment


Link to comment

Hi!

It sounds like the config is corrupt or there's a mistake in it.

Try running it through https://jsonlint.com and fixing any errors that come up or simply just deleting it and reloading the plugin.

 

"Undecided if I should have post this on Support or Questions, went for support ^^"

No worries.  I'm not sure either. 😉 

Share this comment


Link to comment

Oh... the config json was... zero bytes?

Then I deleted that empty file and rebooted the server, a new default appeared.

I have no idea how that happened in between, but shouldn't the plugin detect an empty config?

Well, its working. Weird.

Share this comment


Link to comment
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.