Jump to content

Failed to call hook CmdConsoleShop

Closed 1.3.0 1.3.1

Hi, I have the following error when trying to access some of the categories in my shop (see below). The two categories contain command-type items and worked well before the update. I also have two other categories with command-type items that work fine with the new update. The difference is that the categories that don't work have cooldown and limit player data.

I have converted the with the shop.convert.from.1.2.26 but it doesn't work either.

Any idea where this error is coming from and how to prevent it ?

N.B. I had to enable the new "Favorites" category, as the category that doesn't work is the first category in my shop and the /shop command didn't work without the "Favorites" category showing as first

Thanks

Error message :
Failed to call hook 'CmdConsoleShop' on plugin 'Shop v1.3.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Shop+OpenedShop.AddItemToUpdate (System.Collections.Generic.List`1[T] items) [0x00000] in :0 at Oxide.Plugins.Shop.MainUi (BasePlayer player, System.Int32 catPage, System.Int32 shopPage, System.String search, System.Int32 searchPage, System.Boolean first, System.Boolean categories, System.Int32 iCategory) [0x00162] in :0 at Oxide.Plugins.Shop.CmdConsoleShop (ConsoleSystem+Arg arg) [0x007b3] in :0 at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01582] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :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

Share this comment


Link to comment

Can you send your data files? Because I just checked the plugin on your config, and everything works fine without errors.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.5k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • 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.