Thanks for the answer!
I edited the code like in your example, but I still get the http error 500 if want to edit a page or post through the adminpanel…
After editing the code it worked once when I openend a page in the backend, but when I tried to save the page the error was back and now it is also back when I try to open a page..
Thougt maybe something with cache, but I cleared everything and tried in different browsers…
Strange scenario..