In my, admittedly limited, scripting experience 'nilclass' errors typically mean that a line of script is looking for another that has been altered/removed. A lot of scripts are kind of 'call and fetch' so any change to one side of this needs to be changed on the other as well. I'm sorry that was awfully worded, scripts aren't my forte.
"everyone knows when you use caps that it's serious business"- Tsutanai
"Like I said, our current market breed ferocity, it breeds a cruel and callous kind of people, but that doesn't make them guilty of anything other than being dickheads."- Sparrowsmith