SuiteCRM 7.13.1 and PHP8.0 - Homepage Fatal Error


Upgrading from 7.12 to 7.13.1 was and is difficult.
I had to update PHP to 7.4 or 8.0.
PHP7.4 => I have Apache exit signal Segmentation fault (11) on some pages… no idea why
PHP8.0 => SuiteCRM code is not ready for PHP8.0 … I am debugging slowly

So now on PHP8.0 I need your help.
On my homepage, after I reset the Homepage from profile, i get this error:

Fatal error: Uncaught Error: Attempt to assign property “id” on null in /Data/websites/ Stack trace: #0 /Data/websites/ ListViewData->getListViewData() #1 /Data/websites/ ListViewDisplay->setup() #2 /Data/websites/ DashletGeneric->process() #3 /Data/websites/ include(‘…’) #4 /Data/websites/ HomeViewList->display() #5 /Data/websites/ SugarView->process() #6 /Data/websites/ SugarController->processView() #7 /Data/websites/ SugarController->execute() #8 /Data/websites/ SugarApplication->execute() #9 {main} thrown in /Data/websites/ on line 262

Can you help please ?

Found and solved.
Old custom modules created years ago with Studio but not updated with upgrades…

Needed to Edit modules/MODULE_NAME/Dashlets/ModuleNameDashlet/ModuleNameDashlet.php
Replace: function ModuleNameDashlet($id, $def = null) {
By: function __construct($id, $def = null) {