Plex on Raspberry PI 3

Very bad advice. That’s exactly what does not work at all. That file is not used anywhere and editing it does nothing.

PMS uses Linux user plex by default. According to your screenshot, plex is not allowed to enter /media/pi because of the missing rights for others: drwxr-x---+.

Please read the official guide. It’s all discussed in there.