I'm going to assume you posted this twice because the first one was marked as spam, so I am closing this post as a duplicate of:
If there are any details here that are not added there, please edit that post to include the changes.
Also, please try to put your code in code blocks by selecting the text and clicking the </> button when creating a topic, it makes it easier for us to read. Thanks!