Glts script problems

I’m still very new to all this. Yesterday, everything was fine and I could get my little tests to properly appear, but now nothing works. Please tell me what’s wrong with this. (I’ve removed the URL’s in this post for the glts and pattern file).

https://pastebin.com/LJ9w7MNC

Thank you!