LUA Error when trying to open BankItems #83


  • Defect
  • Invalid
Closed
  • NakedGrandma_1369 created this issue May 16, 2019

    When I click on Icon or try /BI I get this Error every time.  Please Fix i really want to use this addon!

     

    Message: CreateFrame(): Couldn't find inherited node "ItemButtonTemplate"
    Time: Thu May 16 18:30:36 2019
    Count: 2
    Stack: CreateFrame(): Couldn't find inherited node "ItemButtonTemplate"
    [C]: ?
    [C]: in function `CreateFrame'
    Interface\AddOns\BankItems\BankItems.lua:1768: in function `BankItems_CreateFrames'
    Interface\AddOns\BankItems\BankItems.lua:3440: in function `BankItems_SlashHandler'
    Interface\AddOns\BankItems\BankItems.lua:7198: in function <Interface\AddOns\BankItems\BankItems.lua:7197>

    Locals: (*temporary) = "Button"
    (*temporary) = "BankItems_Item1"
    (*temporary) = BankItems_Frame {
    0 = <userdata>
    }
    (*temporary) = "ItemButtonTemplate"

     

     

  • NakedGrandma_1369 added the tags Defect Invalid May 16, 2019
  • qenozis posted a comment Jul 13, 2019

    "ItemButtonTemplate" has been removed in patch 8.1.5, so to make this addon work again, replace phrase "Button" with "ItemButton" and  "ItemButtonTemplate" with "SecureActionButtonTemplate" in every CreateFrame() function, for example:

     

    CreateFrame("Button", "BankItems_Item"..i, BankItems_Frame, "ItemButtonTemplate")

    to:

    CreateFrame("ItemButton", "BankItems_Item"..i, BankItems_Frame, "SecureActionButtonTemplate")

     

    There are 6 places to do this replacement and the addon is back to life. You can find them by searching phrase "ItemButtonTemplate" in the file. Save changes and reload your UI in game or relog.


    Edited Jul 13, 2019
  • qenozis added an attachment BankItems.lua Jul 13, 2019

    BankItems.lua with fixes

    BankItems.lua file containing described fixes to make the addon work properly again after patch 8.1.5 "ItemButtonTemplate" removal.

  • Burstroc closed issue Sep 18, 2020

To post a comment, please login or register a new account.