InvalidCastException at levelHandlerSolved

People can't level and the console is being spammed with this message

Failed to call hook 'OnDispenserGather' on plugin 'ZLevelsRemastered v2.9.10' (InvalidCastException: Specified cast is not valid.)
at Oxide.Plugins.ZLevelsRemastered.levelHandler (BasePlayer player, Item item, System.String skill) [0x00069] in <6407a4a0b18940879e12fe782d0375db>:0
at Oxide.Plugins.ZLevelsRemastered.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00131] in <6407a4a0b18940879e12fe782d0375db>:0
at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x008d0] in <6407a4a0b18940879e12fe782d0375db>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Loving this super super super fast response time
Mine is working as normal with no problems, have you uninstalled it and reinstalled it ? , is your oxide up to date ? ,, have you tried removing all your plugins and install this one on its own ? do you then still get the problem ?. Have you checked your config with json validator ?
I had tried all but the validator, which I have now and it says my json file is fine

The plugin still sort of works, like the base resource boost I've added which is 5x is working, its only when you try and level that it does not want to work
Powdoom1996
I had tried all but the validator, which I have now and it says my json file is fine

The plugin still sort of works, like the base resource boost I've added which is 5x is working, its only when you try and level that it does not want to work

have you disabled broadcasting level up to next level ? , There used to be a problem where it would stick at that point.

Not sure if that's the issue but here's my config

{
  "CUI": {
    "Bounds": {
      "HeightLower": "0.02",
      "HeightUpper": "0.1225",
      "WidthLeft": "0.725",
      "WidthRight": "0.83"
    },
    "BoundsBackground": "0.1 0.1 0.1 0.1",
    "cuiEnabled": true,
    "FontColor": "0.74 0.76 0.78 1",
    "FontSizeBar": 11,
    "FontSizeLevel": 11,
    "FontSizePercent": 11,
    "TextShadowEnabled": true,
    "XpBarBackground": "0.2 0.2 0.2 0.2",
    "XpBarColors": {
      "A": "0 0.8 0 0.5",
      "C": "0.2 0.72 0.5 0.5",
      "M": "0.1 0.5 0.8 0.5",
      "S": "0.8 0.1 0 0.5",
      "WC": "0.8 0.4 0 0.5"
    }
  },
  "Functions": {
    "CollectibleEntitys": {
      "corn-collectable": true,
      "diesel_collectable": false,
      "halloween-bone-collectable": true,
      "halloween-metal-collectable": true,
      "halloween-stone-collectable": true,
      "halloween-sulfur-collectible": true,
      "halloween-wood-collectable": true,
      "hemp-collectable": true,
      "metal-collectable": true,
      "mushroom-cluster-5": true,
      "mushroom-cluster-6": true,
      "potato-collectable": true,
      "pumpkin-collectable": true,
      "stone-collectable": true,
      "sulfur-collectable": true,
      "wood-collectable": true
    },
    "enableCollectiblePickup": true,
    "enableCropGather": true,
    "enableDispenserGather": true
  },
  "Generic": {
    "enableLevelupBroadcast": false,
    "enablePermission": false,
    "excludeChainsawOnGather": false,
    "excludeJackhammerOnGather": false,
    "exludeWeaponsOnGather": false,
    "gameProtocol": 2175,
    "penaltyMinutes": 10,
    "penaltyOnDeath": true,
    "permissionName": "zlevelsremastered.use",
    "permissionNameXP": "zlevelsremastered.noxploss",
    "playerCuiDefaultEnabled": true,
    "playerPluginDefaultEnabled": true,
    "pluginPrefix": "<color=orange>ZLevels</color>:",
    "wipeDataOnNewSave": true
  },
  "NightBonus": {
    "broadcastEnabledBonus": true,
    "enableNightBonus": true,
    "logEnabledBonusConsole": true,
    "PointsPerHitAtNight": {
      "A": 0.5,
      "M": 0.5,
      "S": 0.5,
      "WC": 0.5
    },
    "ResourcePerLevelMultiplierAtNight": {
      "A": 0.5,
      "M": 0.5,
      "S": 0.5,
      "WC": 0.5
    }
  },
  "Settings": {
    "CraftingDetails": {
      "PercentFasterPerLevel": 5,
      "TimeSpent": 1,
      "XPPerTimeSpent": 3
    },
    "DefaultResourceMultiplier": {
      "A": 5,
      "M": 5,
      "S": 5,
      "WC": 5
    },
    "LevelCaps": {
      "A": 9069,
      "C": -1,
      "M": 9069,
      "S": 9069,
      "WC": 9069
    },
    "PercentLostOnDeath": {
      "A": 0.1,
      "C": 0,
      "M": 0.1,
      "S": 0.1,
      "WC": 0.1
    },
    "PointsPerHit": {
      "A": 0.25,
      "M": 0.25,
      "S": 0.25,
      "WC": 0.25
    },
    "ResourcePerLevelMultiplier": {
      "A": 0.3,
      "M": 0.3,
      "S": 0.3,
      "WC": 0.3
    },
    "SkillColors": {
      "A": "#ADD8E6",
      "C": "#CCFF99",
      "M": "#DDDDDD",
      "S": "#FFDDDD",
      "WC": "#FFDDAA"
    }
  }
}
Merged post

I've fixed it the issue was solved when I turned off night bonus
Locked automatically