You’ll probably do better if you start your own thread, rather than jumping on someone elses. But to help:
An error 500 is a PHP error. In order to know exactly what’s wrong, you’ll want the full error message, which isn’t shown by default.
Take a look at this guide to turn on the full error messages, then if you let us know what the full error message is we might be able to help (or it might give you enough information to fix it yourself the errors are usually very helpful)