No, there is no automatic re-open after some time. Post need to get 5 re-open votes from regular users. Duplicates can be re-opened with a single vote by gold badge holders or moderators. Questions closed for other reasons can only be single-handedly reopened by moderators.
All open/close votes age out, so if post is not reopened in relatively short (two weeks) time frame, it will start to lose re-open votes.
There was also an experiment conducted recently that lowered the threshold for closing/reopening to 3 votes. This change may eventually become permanent on Stack Overflow.
For this particular question: it would definitely benefit from a minimal, reproducible example… As it stands now, it is just a guessing game how some other person got perfectly reasonable code not to work for them.