Hi Mihai,
Yesterday I was finally able to solve the problem. Turns out the problem was actually with the theme I used, I just had to reinstall it.
I don’t know why the operator error didn’t appear when I only deactivated NextGen, but at least NextGen and everything else works now.
Regardless, thank you for help. Have a nice day!