Found the reason behind the 500 error, and applied a possible fix. Now I just have to wait and see if it worked