Loading...
Forum Rules:
Before creating a support thread here then please read [Read Before Posting] Ask For Technical Support: The Right Way.

SetBackdrop is nil in Toolkit.lua line 136 WITH FIX

1
Version of ElvUI (use /estatus command ingame to check): 12.03

Disable all addons except the two called "ElvUI" and "ElvUI OptionsUI". Do you still experience the issue now?: No

Disable all addons and use the default UI to make sure it is not an issue with the WoW client itself. Do you still experience the issue?: No

Check for lua errors by using the command "/luaerror on" without quotes. Did you get an error or do you still experience the issue?: No

If you received an error then post it below (use the 'code' bbcode):

Code: Select all

42x ElvUI\Core\Toolkit.lua:136: attempt to call method 'SetBackdrop' (a nil value)
[string "@ElvUI\Core\Toolkit.lua"]:136: in function `SetTemplate'
[string "@RematchElvUISkin\RematchElvUISkin-1.2.2.lua"]:328: in function `func'
[string "@RematchElvUISkin\RematchElvUISkin-1.2.2.lua"]:530: in function <RematchElvUISkin\RematchElvUISkin.lua:527>

Locals:
frame = RematchNotes {
 OnSizeChanged = <function> defined @Rematch\Cards\Notes.lua:40
 OnEnter = <function> defined @Rematch\Cards\Notes.lua:172
 OnFocusLostDelayed = <function> defined @Rematch\Cards\Notes.lua:237
 OnFocusGained = <function> defined @Rematch\Cards\Notes.lua:270
 UpdateControlButtons = <function> defined @Rematch\Cards\Notes.lua:304
 DeleteButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:275
 OnKeyDown = <function> defined @Rematch\Cards\Notes.lua:218
 TopLeftCorner = <unnamed> {
 }
 OnClick = <function> defined @Rematch\Cards\Notes.lua:190
 Controls = <unnamed> {
 }
 TopBorder = <unnamed> {
 }
 OnShow = <function> defined @Rematch\Cards\Notes.lua:54
 TitleBg = <unnamed> {
 }
 BotRightCorner = <unnamed> {
 }
 LockButton = <unnamed> {
 }
 AcceptDelete = <function> defined @Rematch\Cards\Notes.lua:293
 RightBorder = <unnamed> {
 }
 OnFocusLost = <function> defined @Rematch\Cards\Notes.lua:232
 UndoButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:227
 TopRightCorner = <unnamed> {
 }
 template = "Transparent"
 Bg = <unnamed> {
 }
 needsInit = true
 LockButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:312
 0 = <userdata>
 TitleText = <unnamed> {
 }
 TopTileStreaks = <unnamed> {
 }
 OnHide = <function> defined @Rematch\Cards\Notes.lua:62
 BottomBorder = <unnamed> {
 }
 LeftBorder = <unnamed> {
 }
 UpdateLockState = <function> defined @Rematch\Cards\Notes.lua:154
 CloseButton = <unnamed> {
 }
 Title = <unnamed> {
 }
 StopSizing = <function> defined @Rematch\Cards\Notes.lua:31
 BotLeftCorner = <unnamed> {
 }
 OnLeave = <function> defined @Rematch\Cards\Notes.lua:182
 Content = <unnamed> {
 }
 ResizeControls = <function> defined @Rematch\Cards\Notes.lua:45
}
template = "Transparent"
glossTex = nil
ignoreUpdates = nil
forcePixelMode = nil
isUnitFrameElement = nil
(*temporary) = nil
(*temporary) = RematchNotes {
 OnSizeChanged = <function> defined @Rematch\Cards\Notes.lua:40
 OnEnter = <function> defined @Rematch\Cards\Notes.lua:172
 OnFocusLostDelayed = <function> defined @Rematch\Cards\Notes.lua:237
 OnFocusGained = <function> defined @Rematch\Cards\Notes.lua:270
 UpdateControlButtons = <function> defined @Rematch\Cards\Notes.lua:304
 DeleteButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:275
 OnKeyDown = <function> defined @Rematch\Cards\Notes.lua:218
 TopLeftCorner = <unnamed> {
 }
 OnClick = <function> defined @Rematch\Cards\Notes.lua:190
 Controls = <unnamed> {
 }
 TopBorder = <unnamed> {
 }
 OnShow = <function> defined @Rematch\Cards\Notes.lua:54
 TitleBg = <unnamed> {
 }
 BotRightCorner = <unnamed> {
 }
 LockButton = <unnamed> {
 }
 AcceptDelete = <function> defined @Rematch\Cards\Notes.lua:293
 RightBorder = <unnamed> {
 }
 OnFocusLost = <function> defined @Rematch\Cards\Notes.lua:232
 UndoButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:227
 TopRightCorner = <unnamed> {
 }
 template = "Transparent"
 Bg = <unnamed> {
 }
 needsInit = true
 LockButtonOnClick = <function> defined @Rematch\Cards\Notes.lua:312
 0 = <userdata>
 TitleText = <unnamed> {
 }
 TopTileStreaks = <unnamed> {
 }
 OnHide = <function> defined @Rematch\Cards\Notes.lua:62
 BottomBorder = <unnamed> {
 }
 LeftBorder = <unnamed> {
 }
 UpdateLockState = <function> defined @Rematch\Cards\Notes.lua:154
 CloseButton = <unnamed> {
 }
 Title = <unnamed> {
 }
 StopSizing = <function> defined @Rematch\Cards\Notes.lua:31
 BotLeftCorner = <unnamed> {
 }
 OnLeave = <function> defined @Rematch\Cards\Notes.lua:182
 Co
Please explain the issue you're having with as much detail as possible. Describe the exact steps we need to take in order to reproduce the issue.:
1. Load the game with no addon or the two core ElvUI addons, and there is no error. However, loading any ElvUI plugins, including AddOnSkins and/or others, causes the error.

Do you have any other information which might help us track down the issue?:
Yes, here is the fixed code. Change ElvUI\Core\Toolkit.lua line 135 onward:

Code: Select all

else
    if not frame.SetBackdrop then
        Mixin(frame, BackdropTemplateMixin)
    end
    frame:SetBackdrop({
        ...
We often get clues about the issue by looking at your entire UI, so please take some screenshots and add them here.:
[your image(s) here]

SetBackdrop is nil in Toolkit.lua line 136 WITH FIX

7
I'll go find the Tuk/Elv Discord, which I've never joined. Thanks.

EDIT... Right, I've joined, but I cannot see anywhere to post bug reports, and the channel FAQ says to not ping anyone unless it is regarding Premium, which this is not. I do see Azriloka's repo channel, but that can't be correct.

SetBackdrop is nil in Toolkit.lua line 136 WITH FIX

8
I wanted to add to this thread - I get the same exact toolkit.lua:136 error and the fix works for me.

But it's for a different addon.

Code: Select all

Message: Interface\AddOns\ElvUI\Core\Toolkit.lua:136: attempt to call method 'SetBackdrop' (a nil value)
Time: Wed Oct 21 21:13:16 2020
Count: 1
Stack: Interface\AddOns\ElvUI\Core\Toolkit.lua:136: attempt to call method 'SetBackdrop' (a nil value)
[string "@Interface\AddOns\ElvUI_ChatTweaks\Modules\ScrollReminder.lua"]:125: in function <...e\AddOns\ElvUI_ChatTweaks\Modules\ScrollReminder.lua:121>
[string "=[C]"]: ?
[string "@Interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:527: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:520>
[string "=(tail call)"]: ?
[string "@Interface\AddOns\ElvUI_ChatTweaks\ElvUI_ChatTweaks.lua"]:191: in function <...terface\AddOns\ElvUI_ChatTweaks\ElvUI_ChatTweaks.lua:138>
[string "=[C]"]: ?
[string "@Interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:527: in function `EnableAddon'
[string "@Interface\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:630: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>

Locals: <none>