Automatic purge of profiles error with profiles opened from chat link
Ellypse opened this issue ยท 1 comments
What steps will reproduce the problem?
- Open a profile from a chat link so that it is added to the directory
- Wait until the automatic purge of old profiles in the directory kicks in
- When the purge happens, a Lua error is raised because the field
link
is missing in the profile.
What is the expected output? What do you see instead?
The directory should be purged correctly, the delete function should handle when no links exist. Also, the chat links module should create an empty table for links instead of not defining the field.
Did you try having Total RP 3 as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes
What version of Total RP 3 are you using?
1.3.4.1
Was it working in a previous version? If yes, which was the last good one?
Do you have an error log or screenshot of what happened?
sequence ID: globals.addon:OnEnable
Sub-sequence ID: TRP3_APR.events.fireEvent::WORKFLOW_ON_FINISH
Error Message: TotalRP3/modules/register/characters/register_main.lura:96:
bad argument #1 to 'pairs' (table expected, got nil)
2x totalRP3\totalRP3-1.3.4.3-beta1.lua:120: Error during TRP3 loading sequence: ...talRP3\modules\register\characters\register_main.lua:524: attempt to index field 'link' (a nil value)
[C]: in function error' totalRP3\totalRP3-1.3.4.3-beta1.lua:120: in function <totalRP3\totalRP3.lua:113> (tail call): ? [C]: ? [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5> (tail call): ? ...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0-12.lua:558: in function
EnableAddon'
...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0-12.lua:651: in function <...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0.lua:636>
[C]: in function LoadAddOn' ArkInventory\ArkInventory-30743.lua:9594: in function
LoadAddOn'
ArkInventory\ArkInventory-30743.lua:9605: in function BlizzardAPIHook' ArkInventory\ArkInventory-30743.lua:2356: in function <ArkInventory\ArkInventory.lua:2349> (tail call): ? [C]: ? [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5> (tail call): ? ...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0-12.lua:558: in function
EnableAddon'
...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0-12.lua:651: in function <...y\Externals\curse\svn\Ace3-AceAddon\AceAddon-3.0.lua:636>
[C]: in function LoadAddOn' FrameXML\UIParent.lua:429: in function
UIParentLoadAddOn'
FrameXML\UIParent.lua:528: in function `TimeManager_LoadUI'
FrameXML\UIParent.lua:1114: in function <FrameXML\UIParent.lua:1011>
Locals:
nil
Issue seems to still be present at the moment, unsure if links are causing it at the moment or if it's only corrupted data from the previous version.