Well you did not give me any information on the error message. Also I do not understand where that code you posted comes from, it has a different tooltip than what you confirmed you see in game. Other reasons why the code you posted and/or what's in ProfitUI would not work:
- You do not have the spell
- You are lvl73 or higher and do not have the next higher spell (if you were using the default ProfitUI code at least)
- You try to cast on someone with non-US-ASCII characters in their name
That's all I can think of. And don't forget the red line in my sig.