I don’t really know, but i had a similar problem but it’s long time ago. I couldn’t add Media Files, button not working. I remember that deep in my HTML/PHP code I missed a closing tag in the Footer (yes, the footer, the last thing on earth). Fixing it, solved the problem. Don’t know why, but it fixed it. Maybe you have something like that?