Please help me troubleshoot nginx 502 Bad Gateway problem when trying to access Media Tab. In the Event Log I get this message but I don't know what to do. I've been fiddling around with this for 3 days but I'm stuck with it.
Here's the message in the Event Log :
Symfony\Component\Debug\Exception\FatalErrorException: Uncaught ErrorException: Use of undefined constant slug - assumed 'slug' (this will throw an Error in a future version of PHP) in /.../.../mywebsite/config/media.php:30