WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Bug Reports (https://www.wowinterface.com/forums/forumdisplay.php?f=90)
-   -   NUI error Chatframe (https://www.wowinterface.com/forums/showthread.php?t=38910)

Astemos 02-12-11 10:06 PM

NUI error Chatframe
 
Not sure what this talks about, but here is the error:

Date: 2011-02-12 20:54:56
ID: 1
Error occured in: Global
Count: 1
Message: ..\FrameXML\ChatFrame.lua line 3779:
attempt to perform arithmetic on a nil value
Debug:
[C]: ?
..\FrameXML\ChatFrame.lua:3779: ChatEdit_UpdateHeader()
..\FrameXML\ChatFrame.lua:3506: ChatEdit_ResetChatType()
..\FrameXML\ChatFrame.lua:3576:
..\FrameXML\ChatFrame.lua:3562
..\FrameXML\ChatFrame.lua:3586: ChatEdit_DeactivateChat()
..\FrameXML\InterfaceOptionsPanels.lua:980: InterfaceOptionsSocialPanelChatStyle_SetChatStyle()
..\FrameXML\InterfaceOptionsPanels.lua:909:
..\FrameXML\InterfaceOptionsPanels.lua:896
AddOns:
Swatter, v5.9.4960 (WhackyWallaby)
NPCScan, v4.0.3.6
Archy, vv1.7b7
AtlasLoot, vv6.02.00
AtlasLootBurningCrusade, vv6.02.00
AtlasLootCataclysm, vv6.02.00
AtlasLootClassicWoW, vv6.02.00
AtlasLootCrafting, vv6.02.00
AtlasLootWorldEvents, vv6.02.00
AtlasLootWrathoftheLichKing, vv6.02.00
AucAdvanced, v5.9.4960 (WhackyWallaby)
AucDb, v5.1.DEV.3583
AucFilterBasic, v5.9.4960 (WhackyWallaby)
AucFilterOutlier, v5.9.4960.2531
AucMatchUndercut, v5.9.4960.2531
AucStatHistogram, v5.9.4960 (WhackyWallaby)
AucStatiLevel, v5.9.4960 (WhackyWallaby)
AucStatPurchased, v5.9.4960 (WhackyWallaby)
AucStatSales, v5.9.4960.2842
AucStatSimple, v5.9.4960 (WhackyWallaby)
AucStatStdDev, v5.9.4960 (WhackyWallaby)
AucStatWOWEcon, v5.9.4960.2530
AucUtilAHWindowControl, v5.9.4960.3311
AucUtilAppraiser, v5.9.4960.2530
AucUtilAskPrice, v5.9.4960.3175
AucUtilAutoMagic, v5.9.4960.3142
AucUtilCompactUI, v5.9.4960.2530
AucUtilEasyBuyout, v5.9.4960.3583
AucUtilFixAH, v5.9.4960 (WhackyWallaby)
AucUtilGlypher, v5.9.4960.2545
AucUtilItemSuggest, v5.9.4960.3108
AucUtilPriceLevel, v5.9.4960.2545
AucUtilScanButton, v5.9.4960.2530
AucUtilScanFinish, v5.9.4960.2530
AucUtilScanProgress, v5.9.4960.2530
AucUtilScanStart, v5.9.4960.4819
AucUtilSearchUI, v5.9.4960.3655
AucUtilSimpleAuction, v5.9.4960.4546
AucUtilVendMarkup, v5.9.4960.2530
Babylonian, v5.1.DEV.130
BeanCounter, v5.9.4960 (WhackyWallaby)
Configator, v5.1.DEV.282
DBMCore, v
DebugLib, v5.1.DEV.275
Enchantrix, v5.9.4960 (WhackyWallaby)
EnchantrixBarker, v5.9.4960 (WhackyWallaby)
GroupCalendar5, v5.4
Informant, v5.9.4960 (WhackyWallaby)
MonkeyBuddy, v
MonkeyLibrary, v
MonkeyQuest, v
MonkeyQuestLog, v
nUI, v5.07.11 (Lite)
Overachiever, v0.60
OverachieverTabs, v0.60
OverachieverTrade, v0.60
RatingBuster, v
Recount, v
SlideBar, v5.9.4960 (WhackyWallaby)
Stubby, v5.9.4960 (WhackyWallaby)
TomTom, vv40000-1.0.9
BlizRuntimeLib_enUS v4.0.6.40000 <us>
(ck=7d7)

sigg 02-13-11 04:37 AM

spend a lot of time to fix this error.

hum Blizzard...

Somewhere in the code, the editbox is not anchor anymore to the chatframe, so call GetRight and GetLeft return nil.

Add this code somewhere.

Code:

local tt = ChatEdit_UpdateHeader;
       
ChatEdit_UpdateHeader = function(editBox)
        local header = _G[editBox:GetName().."Header"];
        header:ClearAllPoints();
        header:SetPoint("LEFT", editBox, "LEFT", 15, 0);
        if header:GetRight() ~= nil and header:GetLeft() ~= nil then
                tt(editBox);
        end
end


Astemos 02-13-11 09:25 PM

Thank you for responding.

Can I add that to the end, or do I have to find a spot to add it?

generalhanor 05-23-12 10:00 PM

Quote:

Originally Posted by sigg (Post 229600)
spend a lot of time to fix this error.

hum Blizzard...

Somewhere in the code, the editbox is not anchor anymore to the chatframe, so call GetRight and GetLeft return nil.

Add this code somewhere.

Code:

local tt = ChatEdit_UpdateHeader;
       
ChatEdit_UpdateHeader = function(editBox)
        local header = _G[editBox:GetName().."Header"];
        header:ClearAllPoints();
        header:SetPoint("LEFT", editBox, "LEFT", 15, 0);
        if header:GetRight() ~= nil and header:GetLeft() ~= nil then
                tt(editBox);
        end
end


I couldn't get this to work
Maybe I'm doing it wrong....where do I add this?


All times are GMT -6. The time now is 08:37 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI