DennisRas / WeeklyKnowledge

Track your profession knowledge across your characters
https://www.curseforge.com/wow/addons/weeklyknowledge
7 stars 1 forks source link

lastUpdate being nil #31

Closed DennisRas closed 2 months ago

DennisRas commented 2 months ago

Reported on Curseforge:

I dont know if he's having the same problem as I am but I was using v1.0.2 and after updating (either 1.0.3 or 1.0.4) i get a lua error when starting game/reload and my character sheet is empty


Message: Interface/AddOns/WeeklyKnowledge/Core.lua:551: attempt to compare two nil values
Time: Thu Sep 5 02:29:24 2024
Count: 1
Stack: Interface/AddOns/WeeklyKnowledge/Core.lua:551: attempt to compare two nil values
[string "=[C]"]: ?
[string "@Interface/AddOns/WeeklyKnowledge/Core.lua"]:551: in function <Interface/AddOns/WeeklyKnowledge/Core.lua:550>
[string "=[C]"]: in function `sort'
[string "@Interface/AddOns/WeeklyKnowledge/Core.lua"]:550: in function `GetCharacters'
[string "@Interface/AddOns/WeeklyKnowledge/Core.lua"]:1078: in function <Interface/AddOns/WeeklyKnowledge/Core.lua:1077>
[string "=[C]"]: in function `securecallfunction'
[string "@Interface/AddOns/Blizzard_Menu/Menu.lua"]:2417: in function `PopulateDescription'
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:252: in function <Interface/AddOns/Blizzard_Menu/DropdownButton.lua:251>
[string "=[C]"]: in function `securecallfunction'
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:262: in function `GenerateMenu'
[string "@Interface/AddOns/Blizzard_Menu/DropdownButton.lua"]:247: in function `SetupMenu'
[string "@Interface/AddOns/WeeklyKnowledge/Core.lua"]:1077: in function <Interface/AddOns/WeeklyKnowledge/Core.lua:834>
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua"]:66: in function <...UI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[string "@Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua"]:619: in function <...UI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>

Locals:
'''
DennisRas commented 2 months ago

Follow-up:

No problem at all, I'm the one that appreciates you for providing us with the addon :) i get a new lua error after deleting those lines

1x WeeklyKnowledge/Core.lua:1079: bad argument #3 to 'format' (string expected, got nil)
[string "=[C]"]: in function `format'
[string "@WeeklyKnowledge/Core.lua"]:1079: in function <WeeklyKnowledge/Core.lua:1077>
[string "=[C]"]: in function `securecallfunction'
[string "@Blizzard_Menu/Menu.lua"]:2417: in function `PopulateDescription'
[string "@Blizzard_Menu/DropdownButton.lua"]:252: in function <Blizzard_Menu/DropdownButton.lua:251>
[string "=[C]"]: in function `securecallfunction'
[string "@Blizzard_Menu/DropdownButton.lua"]:262: in function `GenerateMenu'
[string "@Blizzard_Menu/DropdownButton.lua"]:247: in function `SetupMenu'
[string "@WeeklyKnowledge/Core.lua"]:1077: in function <WeeklyKnowledge/Core.lua:834>
[string "=[C]"]: ?
[string "@ElvUI_Libraries/Core/Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...UI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@ElvUI_Libraries/Core/Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[string "@ElvUI_Libraries/Core/Ace3/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...UI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>
DennisRas commented 2 months ago

This is most likely an issue with data migration. Waiting for the player to provide saved data so I can take a look.