ChatFrame.lua Bug

Hi, Ive been getting this Lua error alot; does anyone know a fix or what might be causing this? already tried a full interface reset and even reinstalled the game. Also disabled all addons.

11x FrameXML/ChatFrame.lua:1060: bad argument #1 to ‘strlower’ (string expected, got nil)
[string “=[C]”]: in function `strlower’
[string “@FrameXML/ChatFrame.lua”]:1060: in function <FrameXML/ChatFrame.lua:1055>

Locals:
(*temporary) = nil
(*temporary) = “string expected, got nil”

Interested in an answer as well. Can’t figure it out where it comes from. Getting the same basically.

You’re probably using broken cast sequence macros or there is some item you’re trying to use that’s somehow bugged. If the error line is correct then this is the crashing function.

You could even try resetting all of your talents. It could be some issue with a removed/changed spell for your class/spec.

Or maybe you’re trying to use [talent] in a macro. (it’s been removed)

function QueryCastSequence(sequence)
local index = 1;
local item, spell;
local entry = CastSequenceTable[sequence];
if ( entry ) then
	if ( (IsShiftKeyDown() and strfind(entry.reset, "shift", 1, true)) or
		 (IsControlKeyDown() and strfind(entry.reset, "ctrl", 1, true)) or
		 (IsAltKeyDown() and strfind(entry.reset, "alt", 1, true)) ) then
		index = 1;
	else
		index = entry.index;
	end
	item, spell = entry.items[index], entry.spells[index];
else
	entry = CastSequenceFreeList[sequence];
	if ( entry ) then
		item, spell = entry.items[index], entry.spells[index];
	else
		local reset, spells = strmatch(sequence, "^reset=([^%s]+)%s*(.*)");
		if ( not reset ) then
			spells = sequence;
		end
		local action = strlower(strtrim((strsplit(",", spells))));
		if ( select(3, SecureCmdItemParse(action)) or GetItemInfo(action) ) then
			item, spell = action, strlower(GetItemSpell(action) or "");
		else
			item, spell = nil, action;
		end
	end
end
if ( item ) then
	local name, bag, slot = SecureCmdItemParse(item);
	if ( slot ) then
		if ( name ) then
			spell = strlower(GetItemSpell(name) or "");
		else
			spell = "";
		end
	end
end
return index, item, spell;
end

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.