Scratch this, I've found my problem. Incase it helps others this was the solution:
the errors were based on three static text boxes which I had created a callback for and then deleted, so by creating a new GUI with a static text box and then copying/pasting the code over to this one and changing it's name the script was able to run again.