aSseptic
Thank you so much for finding the cure.
I spent 2 days looking for the solution and your solution actually solved it.
I notice on latest upgrade, line 1252 has been changed as you said, but "define" was not added.
I just copied and paste define('DONT_SAVE_PERMISSIONS_IN_BACKGROUND', true); at the top of the permission.php
and it worked finally.
Thanks again