Give us som code of what you have and it's easier to understand what you are trying to do.
Generally a 500 error means that you have a type-o or something else wrong in your code.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys,
im not sure if this here is the right place but i will try my luck becasue i stuck with this problem since 1 day and may its becasue the course isnt really good or up2date or i miss smt.
Im not sure if i did something wrong but there two things wich confusing me. But before i want to tell you that i use PHPStrom and Mamp as dev stack.
First problem is that the "routes" in "routes.php" im not sure why the "$router" variable is not defined in the source of the tutor? PHPStorm marks it as an error. And my second problem is if i use my own mysql credentials with an password im running into an 500 error but i dont know why?
Some one got an idea how to fix this?
Please or to participate in this conversation.