Thread Tools Display Modes
03/31/23, 08:22 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
Question attempt to call a nil value error

I'm getting a strange error after zoning after finishing a last feature for my addon.

Code:
Attempt to call a nil value
stack traceback:
Thats with more info enabled.. no other information. its difficult to track this. Any suggestions?
  Reply With Quote
03/31/23, 08:28 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,960
There is no other info? No line number and no file name?
Attempt to call a nil value means you try to call a function somewhere, maybe from your XML code, that does not exist at the time you call it.

Well, disable ALL addons and libraries.
Test if no error.
If so: Enable ONLY your addon and LibAddonMenu-2.0.

If the error happens again:

Check your last changed files and see what you have changed there.
Download and enable DebugLogViewer and LibDebugLogger. At the settings menu of LibDebugLogger enable the strack traceback and at the UI for DebugLogViewer to left dropdown: Change to "Current session" (which is only current /reloadui then).
Check if there are any error messages shown in DebugLogViewer, which you normally would not see as they happen before the chat is ready.
  Reply With Quote
03/31/23, 08:32 PM   #3
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
Correct was nothing else BUT.. Think i found it.. it my On_Player_Activate function i was supposed to be unregistering the tevar stone update if the feature was disabled or not in campaign etc.. It was missing the "Un" in "Unregister". so was trying to register the event with no function listed... testing now but im 97% sure that was the cause and only mistake i can find.

**EDIT

that correction seems to have fixed it.. sorry to bother you.

Last edited by sinnereso : 03/31/23 at 08:38 PM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » attempt to call a nil value error

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