There is indeed something not working, but there is no error message indicating any issue, so I don’t know the cause yet.
Can you also provide temporary FTP access? I would like to do some debugging/changes around that code to see where it fails and fix it if possible.
Make sure to have a back-up of everything, in case something goes wrong.