Hey, I'm not sure if you'll actually read this but I post this anyway.
You posted on my profile asking for help regarding the Whirlpool spell. The fix for the error is simple:
1) Open the spell map and open the trigger editor
2) There is a warcraft map icon above all the triggers, the name beside that icon should be the name of the map. Select that.
3) You should see a text field instead of the usual triggers. There's some text starting with "function DebugMsg" or something along those lines. Copy the text in that text field.
4) Paste the text you copied into your map. Remember to put in in the same place (that icon with the map name beside it) you copied the text from my map.
All of the above should be done in the trigger editor.
Good luck