I managed to solve the problem in a very simple way: go to Global Settings → System → Reporting and disable “reporting.dump_errors” (you may want to disable “Send Usage Reports” as well). After that, run validate.php and everything runs without errors!
I don’t know how sending error dumps is related to the above errors, but disabling this item really helped.
1 Like