Greetings!
I have read your requirements.
Can I take a look at your script?
I'm an expert PHP/JavaScript/Python programmer, have worked with Windows, *nix, macOS, good at understanding someone else's code.
I will correct your script to make it work as before.
I'm ready to do extensive research to fix complex issues if you have got any.
I have worked with popular PHP CMSs (Joomla, WordPress, Drupal, etc) and can help if your script works on the site powered by one of these CMSs.
Currently, I am free for this work, can start right after hiring, focus on this task and complete it soon.
I'll do my best to bring you the solution as soon as possible.
Waiting for your response.
Regards.