Hi,
I thought it might be a problem in the code I'd merged, but it continues even when using the Moodle official code.
All signs lead that the problem is from the database is being upgraded! Is there anything special about this `block permissions` in the database?
Regards,