I looked at the scripts but nothing major stuck out. It would be much easier to debug with data. I realize some of your data is sensitive. Replacing that data with fake data would help in the debugging process.
Hi. Its hard to diagnose without data - but my guess is that its to do with the sub-summary in the Membership layout. The sub-summary part is setup for when the records are sorted by the field "Membership::Sort List Key".
The script trigger on the Membership layout for OnLayoutEnter runs a different script in the new database that doesn't sort the records by the field "Membership::Sort List Key" - whereas the script run by OnLayoutEnter in the old database does.
If your records are not sorted correctly, then your sub-summary layout will not work.
Have a look at fixing that issue and you might solve your problem.
Thank you so much! This worked and it is all sorted out and working perfectly again!