Looks like you are using a custom script, check what the line of code it is complaining about is (i.e. line 147) that might give a clue.
Probably best to contact the artist responsible for the script directly.
Been there, done that, got all the T-Shirts!