SuiteCRM 7.13.1 and PHP8.0 - Homepage Fatal Error

Hi.

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/crm.xxx.com/include/ListView/ListViewData.php:262 Stack trace: #0 /Data/websites/crm.xxx.com/include/ListView/ListViewDisplay.php(158): ListViewData->getListViewData() #1 /Data/websites/crm.xxx.com/include/Dashlets/DashletGeneric.php(474): ListViewDisplay->setup() #2 /Data/websites/crm.xxx.com/modules/Home/index.php(244): DashletGeneric->process() #3 /Data/websites/crm.xxx.com/modules/Home/views/view.list.php(54): include(‘…’) #4 /Data/websites/crm.xxx.com/include/MVC/View/SugarView.php(210): HomeViewList->display() #5 /Data/websites/crm.xxx.com/include/MVC/Controller/SugarController.php(432): SugarView->process() #6 /Data/websites/crm.xxx.com/include/MVC/Controller/SugarController.php(363): SugarController->processView() #7 /Data/websites/crm.xxx.com/include/MVC/SugarApplication.php(101): SugarController->execute() #8 /Data/websites/crm.xxx.com/index.php(52): SugarApplication->execute() #9 {main} thrown in /Data/websites/crm.xxx.com/include/ListView/ListViewData.php 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) {