Paste NG

Paste NG

380k Downloads

Attempt to index field 'EditBox' (a nil value) on MoP

b-morgan opened this issue ยท 3 comments

commented

I'm using ## Version: 11.2.0-20250808-1 on MoP and I got the following error when trying to save a TomTom command.

2x ...rfacePasteNG/Modules/Dialog/DialogModule.lua:674: attempt to index field 'EditBox' (a nil value)
[PasteNG/Modules/Dialog/DialogModule.lua]:674: in function 'OnAccept'
[Blizzard_StaticPopup/StaticPopup.lua]:1089: in function 'StaticPopup_OnClick'
[*StaticPopup.xml:23_OnClick]:1: in function <[string "*StaticPopup.xml:23_OnClick"]:1>

Locals:
self = StaticPopup3 {
 hideOnEscape = true
 SubText = FontString {
 }
 ItemFrame = StaticPopup3ItemFrame {
 }
 TopLeftCorner = Texture {
 }
 button4 = StaticPopup3Button4 {
 }
 moneyFrame = StaticPopup3MoneyFrame {
 }
 AlertIcon = StaticPopup3AlertIcon {
 }
 Dropdown = Button {
 }
 text = StaticPopup3Text {
 }
 Spinner = Frame {
 }
 moneyInputFrame = StaticPopup3MoneyInputFrame {
 }
 maxHeightSoFar = 113.004364
 icon = StaticPopup3AlertIcon {
 }
 Center = Texture {
 }
 RightEdge = Texture {
 }
 CoverFrame = Frame {
 }
 itemFrame = StaticPopup3ItemFrame {
 }
 BottomEdge = Texture {
 }
 data = "/way Abyssal Depths 58.87 57.96 Tenebrous Cavern"
 button3 = StaticPopup3Button3 {
 }
 BottomRightCorner = Texture {
 }
 BottomLeftCorner = Texture {
 }
 backdropInfo = <table> {
 }
 extraFrame = StaticPopup3ExtraFrame {
 }
 TopRightCorner = Texture {
 }
 numButtons = 2
 maxWidthSoFar = 320
 button2 = StaticPopup3Button2 {
 }
 DarkOverlay = Frame {
 }
 button1 = StaticPopup3Button1 {
 }
 TopEdge = Texture {
 }
 extraButton = StaticPopup3ExtraButton {
 }
 editBox = StaticPopup3EditBox {
 }
 timeleft = 0
 CloseButton = StaticPopup3CloseButton {
 }
 Separator = Texture {
 }
 LeftEdge = Texture {
 }
 which = "PASTENG_SAVE"
}
data = "/way Abyssal Depths 58.87 57.96 Tenebrous Cavern"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'EditBox' (a nil value)"
DBModule = <table> {
 modules = <table> {
 }
 defaultModuleLibraries = <table> {
 }
 name = "PasteNG_DBModule"
 orderedModules = <table> {
 }
 AceDB = <table> {
 }
 baseName = "PasteNG"
 enabledState = true
 moduleName = "DBModule"
 defaultModuleState = true
}
commented

Ahh yes, they didn't change it in MoP, only in Retail.

I will fix it tomorrow, until then, you can rollback to the previous version to avoid the issue.

commented

Didn't get around to it yesterday, IRL came in the way.
Hope to be able to fix it today ๐Ÿ™‚

commented

I have pushed 11.2.0-20250810-1 with the fix, so it works on both MoP Classic and Retail ๐Ÿ˜Š