500 error when logging in -- plugin related?

I have no idea what this is related to and I don’t understand any of the error message I posted. It could be related to the national_flags plugin, since that logged an error a few minutes before that one.

But here is the weirdest thing: I am using different browsers to login with as different users for testing purposes but before that error happened, I accidentally used a new tab in the same browser (Chrome) to login with a different account. When I went back to the tab with the original Chrome user, everything looked fine because I didn’t refresh the page and so I posted a reply. I was surprised to see that the reply I had just typed had the other users avatar. That’s how I realized that I had logged the other user in with Chrome rather than Firefox. So it made sense. But what didn’t make sense was that the Firefox user all of a sudden had the chrome user’s national flag next to it even though I had not touched that setting for that user.

I hear you say: see told you. Don’t use plugins.

Okay, but wait, it gets even weirder. Look at this:

Hm, I can’t seem to be able to upload any image. It just get’s stuck uploading. Anyway, what I have is a single browser tab displaying one users avatar and user menu while showing the other users preference page. And even survives a page reload.

Edit: Are there some restrictions on files I can upload? I can’t get this image into the post. Tried copy&paste, drag&drop and upload file from computer. Doesn’t work. Doesn’t finish uploading. So here is a link: