Did you try searching for that error string? Most warning messages are actually in the lua, not the engine.
It's in lua\sim\AI\BrainPlanner.lua, with a similar category check. However, I think this is just for the AI - so this warning shouldn't actually be the cause of the current problem.
Have you added ugbdefense02 (or whatever other units you're using as shops) to the checks in SCREEN_shop_tabbed.lua? Honestly, I'm not seeing anywhere else in the lua that ugbshop01 and ugbshop05 are mentioned. If you're adding allowances for whatever unitids you're trying to shop from to SCREEN_shop_tabbed, then I'm out of ideas.
Edit: Try adding some log messages in SCREEN_shop_tabbed, in all of the conditions under tree.OnItemClick. See if that's what's not letting you pick items. I have a feeling it has to do with the ShopGUI.Shop variable, which seems to hold a reference to the shop's unitid entity id:
Code: c++
- ShopGUI.Shop = GetUnitById(Sync.BeginShop.Shop)
..but I don't know exactly what this would affect, as I don't see anything special about say ugbshop01 that lets it function as a shop, other than that its script is inheriting from the Shop class instead of the base StructureUnit class. And I don't see anything in the Shop class that should enable shopping. Welp.
Edit 2: There's also CanPickItem in lua/common/ValidateShop.lua, and HandleItemPurchase in lua/sim/Item.lua. Might try logging some of their conditions/parameters if you don't have any luck with OnItemClick.