Thread Tools Display Modes
03/07/15, 08:07 AM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,960
Anyone else gets an ZOs error message upon guild note change?

Hey there,

just tried to change my guild note and got the following error message:


Lua Code:
  1. 2015-03-07T14:58:19.221+01:00 |cff0000Lua Error: EsoUI/Ingame/Contacts/SocialDialogs.lua:79: function expected instead of nil
  2. stack traceback:
  3.     EsoUI/Ingame/Contacts/SocialDialogs.lua:79: in function 'm_callback'
  4.     EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:68: in function 'HandleCallback'
  5.     EsoUI/Libraries/ZO_KeybindButton/ZO_KeybindButton.lua:140: in function 'ZO_KeybindButtonMixin:OnClicked'
  6.     EsoUI/Libraries/ZO_KeybindButton/ZO_KeybindButton.lua:149: in function 'ZO_KeybindButtonTemplate_OnMouseUp'
  7.     9245264028729672156:3: in function '(main chunk)'|r

The only keybind I have seen ont he sript was "Add guild member" at this point.

The only addons active that interfere with the guilds roster should be:
-Thurisaz GuildInfo

I've disabled it to see if this was the reason. But the error is still there.

I can also see that MailBuddy is adding a control anchored to the guild stuff and it seems to add a keybind too to copy the name of a guild member below the mouse cursor. But I still get this error message with both addons disabled.

Any ideas where this might come from?
  Reply With Quote
03/07/15, 09:54 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
ingame/guild/keyboard/guildroster_keyboard.lua +228
Lua Code:
  1. ZO_Dialogs_ShowDialog("EDIT_NOTE", {
  2.  displayName = data.displayName, note = data.note,
  3.  changedCallback = GUILD_ROSTER_MANAGER:GetNoteEditedFunction()})

I'd look for GetNoteEditedFunction / noteEditedFunction
  Reply With Quote
03/09/15, 07:57 PM   #3
malacoda
Join Date: Mar 2015
Posts: 3
i am also getting this error as well anyone got any ideas i have deleted all my addons and i am still getting this error i have no idea when it comes to lua/xml would really like to get it fixed
  Reply With Quote
03/09/15, 08:09 PM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,960
Got no time so far to look into it but I'll have a look this evening if I'll get this error message with all addons turned off too.
  Reply With Quote
03/09/15, 09:59 PM   #5
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by merlight View Post
ingame/guild/keyboard/guildroster_keyboard.lua +228
Lua Code:
  1. ZO_Dialogs_ShowDialog("EDIT_NOTE", {
  2.  displayName = data.displayName, note = data.note,
  3.  changedCallback = GUILD_ROSTER_MANAGER:GetNoteEditedFunction()})

I'd look for GetNoteEditedFunction / noteEditedFunction
What he said. I'de look for anything messing with the EDIT_NOTE dialog or the GUILD_ROSTER_MANAGER and its noteEditedFunction.
  Reply With Quote
03/10/15, 08:43 AM   #6
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
I haven't been able to repro this on live. Does it happen on the first note you try to edit or are there specific circumstances involved?
  Reply With Quote
03/10/15, 08:54 AM   #7
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Just tested :


/reloadui
Press G
Go on my guild
Edit My note (was previously set to some text)
Add a single "."
Press save button :



2015-03-10T15:52:53.351+01:00 |cff0000Lua Error: EsoUI/Ingame/Contacts/SocialDialogs.lua:79: function expected instead of nil
stack traceback:
EsoUI/Ingame/Contacts/SocialDialogs.lua:79: in function 'm_callback'
EsoUI/Libraries/ZO_Dialog/ZO_Dialog.lua:68: in function 'HandleCallback'
EsoUI/Libraries/ZO_KeybindButton/ZO_KeybindButton.lua:140: in function 'ZO_KeybindButtonMixin:OnClicked'
EsoUI/Libraries/ZO_KeybindButton/ZO_KeybindButton.lua:149: in function 'ZO_KeybindButtonTemplate_OnMouseUp'
9245264028729672156:3: in function '(main chunk)'|r
  Reply With Quote
03/10/15, 12:08 PM   #8
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
I tried last night & again this morning following the steps Ayantir posted. I can still can't reproduce this.
  Reply With Quote
03/10/15, 01:54 PM   #9
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by circonian View Post
I tried last night & again this morning following the steps Ayantir posted. I can still can't reproduce this.
Strange,
Without any addons, just tested now with another Guildmate, same issue.
  Reply With Quote
03/10/15, 03:59 PM   #10
malacoda
Join Date: Mar 2015
Posts: 3
yep same try to edit my guild note and it gives the Error
  Reply With Quote
03/10/15, 04:59 PM   #11
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Oh I was doing it wrong, I was able to reproduce it.
I was right clicking on my name & clicking "Edit Note" I didn't realize there was a note button to click on.
If I click on the note button next to my name & do what you said I do get the error.

It looks like this is the problem here:
When you click on the row note button, it calls:
Lua Code:
  1. <OnClicked>
  2.    ZO_KeyboardGuildRosterRowNote_OnClicked(self)
  3. </OnClicked>

Lua Code:
  1. function ZO_KeyboardGuildRosterRowNote_OnClicked(control)
  2.     -- Which calls this:
  3.     GUILD_ROSTER_KEYBOARD:Note_OnClicked(control)
  4. end

and GUILD_ROSTER_KEYBOARD is defined/created here:
Lua Code:
  1. function ZO_KeyboardGuildRoster_OnInitialized(control)
  2.     GUILD_ROSTER_KEYBOARD = ZO_KeyboardGuildRosterManager:New(control)
  3. end

and ZO_KeyboardGuildRosterManager is a subclass of ZO_SocialListKeyboard:
Lua Code:
  1. local ZO_KeyboardGuildRosterManager = ZO_SocialListKeyboard:Subclass()

So its actually calling this function:
Lua Code:
  1. function ZO_SocialListKeyboard:Note_OnClicked(control)
  2.     local data = ZO_ScrollList_GetData(control:GetParent())
  3.     ZO_Dialogs_ShowDialog("EDIT_NOTE", {displayName = data.displayName, note = data.note, changedCallback = self.noteEditedFunction})
  4. end

Which means its trying to set:
Lua Code:
  1. changedCallback = GUILD_ROSTER_KEYBOARD.noteEditedFunction
  2. -- because self = GUILD_ROSTER_KEYBOARD

but GUILD_ROSTER_KEYBOARD doesn't have a noteEditedFunction
The noteEditedFunction is in: GUILD_ROSTER_MANAGER


Somewhere it needs to set the noteEditedFunction. Cant do it in the ZO_SocialListKeyboard:Note_OnClicked(control), because its shared with the friends list note edit, (maybe others too).
The easiest solution would probably be to just set it right here, right before it calls the function to show the dialog:
Lua Code:
  1. function ZO_KeyboardGuildRosterRowNote_OnClicked(control)
  2.     GUILD_ROSTER_KEYBOARD.noteEditedFunction = GUILD_ROSTER_MANAGER:GetNoteEditedFunction()
  3.     GUILD_ROSTER_KEYBOARD:Note_OnClicked(control)
  4. end

Or give it its own function to show the dialog, like they did with the ignore list:
Lua Code:
  1. function ZO_KeyboardIgnoreListManager:IgnoreListPanelRowNote_OnClicked(control)
  2.     local data = ZO_ScrollList_GetData(control:GetParent())
  3.     if data then
  4.         local displayName, note = GetIgnoredInfo(data.index)
  5.         ZO_Dialogs_ShowDialog("EDIT_NOTE", {displayName = displayName, note = note, changedCallback = IGNORE_LIST_MANAGER:GetNoteEditedFunction()})
  6.     end
  7. end

By the way: The Friends list has the same bug

Last edited by circonian : 03/10/15 at 06:32 PM.
  Reply With Quote
03/10/15, 09:47 PM   #12
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Oh, I wasn't thinking. I guess I could post a temporary fix for you guys to use until they fix it.

Edit Note Bug Fix

That fixes both the guild note & friends note bugs.
  Reply With Quote
03/11/15, 08:33 AM   #13
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Ah, that's the trick. I was also using the right-click menu. Thanks for the detailed breakdown Circonian! We'll get a fix in ASAP.
  Reply With Quote
03/11/15, 12:56 PM   #14
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,960
Thx doods for the anaylsis and the for the fix workaround!
  Reply With Quote
03/11/15, 06:55 PM   #15
malacoda
Join Date: Mar 2015
Posts: 3
yeh thanks alot for the workaround
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Anyone else gets an ZOs error message upon guild note change?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off