5.0.4 Glyph UI Taint

This has been fixed.

Patch 5.0.4 introduced an annoying bug to deal with.

Blizzard accidentally declared "_" to be global, so if your addon uses "_" as a global it will cause the GlyphUI frame to not work.

It's an easy fix, instead of:

local class
_, class = UnitClass("player")

Just declare _ as a local variable:

local _, class
_, class = UnitClass("player")

or you can achieve it another way using the select method:

local class = select(2, UnitClass("player"))

Using local variable over global variables is good addon practice for a variety of reasons, some of which include speed of access, interactions with other addons/Blizzard UI, and just not polluting the global namespace.

Good news however is that this is already fixed on the beta and should be slated for patch 5.0.5.

Mikk wrote a nice little utility which helps find global leakage in your addons. You can get it from WowAce here.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Trand12 Trand12 Jun 24, 2015 at 10:10 UTC - 0 likes

    I've played World of Warcraft (WOW) for ages now and I just couldn't ever play without having add-ons. I frequently change which add-ons I use because there are so many to choose from and it's nice to find the gems that I hang on to forever. Here are some of the best add-ons to get for rogues if that is what you are playing. mobile tracking applications

  • Avatar of Dorbacted Dorbacted Jun 24, 2015 at 09:44 UTC - 0 likes

    Google chrome is the web browser by Google Corporation. The browser contains minimal required design. It uses the sophisticated technology to make it faster, easier and safer to be used. An additional technology supported by the Google Chrome browser is the facility of add-ons. twilio call

    Last edited Jun 24, 2015 by Dorbacted
  • Avatar of Dorbacted Dorbacted Jun 24, 2015 at 09:21 UTC - 0 likes

    I actually enjoyed your post. The way you delivered your view/opinion, was very insightful. Your contribution to this community will be very fruitful to us. application sms

  • Avatar of Nilvalue Nilvalue Nov 12, 2012 at 10:47 UTC - 0 likes

    It seems the problem has been fixed by blz in 5.05. But I still have the problem when I change talent: Ace3 or Bartender4 has been blocked by blz...

  • Avatar of 420psilo 420psilo Oct 28, 2012 at 18:25 UTC - 0 likes

    this prob is getting rediculously frustrating. I honestly think that the addon being blamed is not even the one causing the issue, but rather a random finger pointing. I have to disable sooo many addons before it works....http://us.battle.net/wow/en/forum/topic/7004690454... this post by ELV from ELV ui seems to break it down very clearly. Ive made a post on the Bug forums. maybe if enuff noise is made it will be cleaned up.

  • Avatar of laric laric Sep 14, 2012 at 08:07 UTC - 0 likes

    Doesn't look like 5.0.5 solved this issue. I hope they include it in the 5.1 patch.

  • Avatar of 420psilo 420psilo Sep 09, 2012 at 03:12 UTC - 0 likes

    thank you guys . :) your hard work is always appreciated :) :) :)

  • Avatar of yossa yossa Sep 04, 2012 at 16:46 UTC - 0 likes

    if you don't want to change lots of code you can also declare: local _

    at the beginning of every lua file, which cause problems. I fixed like this all broken addons I use.

  • Avatar of Silmano Silmano Sep 04, 2012 at 08:29 UTC - 0 likes

    Just got an error reported for this, I was all worried on why would the addon call CastGlyph() function and then fail if it doesn't have anything to do with glyphs at all...

  • Avatar of Seerah Seerah Sep 04, 2012 at 04:23 UTC - 2 likes

    For future reference, _ is a VALID VARIABLE NAME. So treat it like one, and localize it. It's just a convention that authors have made it a throw away variable.

    Last edited Sep 04, 2012 by Seerah


Date created
Sep 04, 2012
Last updated
Oct 23, 2012